Permalink
Browse files

file: Add S_ISFIFO compatability macro

Not all systems have S_ISFIFO.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information...
1 parent 44f8393 commit 16c03f2e910a08a90118cc584c8b6a574eb96cd0 @dwbuiten dwbuiten committed with michaelni Sep 7, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 libavformat/file.c
View
@@ -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 */

0 comments on commit 16c03f2

Please sign in to comment.