avformat/ipfsgateway: define PATH_MAX

PATH_MAX is posix. Some compilers (MSVC) don't define this
thus failing to compile the ipfsgateway file.
Defining it fixes the compile.

Signed-off-by: Mark Gaiser <markg85@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
release/5.1
Mark Gaiser 3 years ago committed by Martin Storsjö
parent bf6735e945
commit ea84eb2db1
  1. 6
      libavformat/ipfsgateway.c

@ -25,6 +25,12 @@
#include "os_support.h"
#include "url.h"
// Define the posix PATH_MAX if not there already.
// This fixes a compile issue for MSVC.
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
typedef struct IPFSGatewayContext {
AVClass *class;
URLContext *inner;

Loading…
Cancel
Save