You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
committed by
Martin Storsjö
parent
bf6735e945
commit
ea84eb2db1
@@ -25,6 +25,12 @@
|
|||||||
#include "os_support.h"
|
#include "os_support.h"
|
||||||
#include "url.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 {
|
typedef struct IPFSGatewayContext {
|
||||||
AVClass *class;
|
AVClass *class;
|
||||||
URLContext *inner;
|
URLContext *inner;
|
||||||
|
Reference in New Issue
Block a user