diff --git a/libavformat/file.c b/libavformat/file.c index 4e8129e9ae..288275f6ef 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -33,6 +33,14 @@ #include "os_support.h" #include "url.h" +/* Some systems may not have S_ISFIFO */ +#ifndef S_ISFIFO +# ifdef S_IFIFO +# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) +# else +# define S_ISFIFO(m) 0 +# endif +#endif /* standard file protocol */