aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/file.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-09-07 09:45:09 -0400
committerMichael Niedermayer <michaelni@gmx.at>2012-09-09 20:23:14 +0200
commit16c03f2e910a08a90118cc584c8b6a574eb96cd0 (patch)
tree40e8295d2a87ffb7acbe6cce80495ef56d031639 /libavformat/file.c
parent44f83930d91fdb249f8b92198d1b4c2ae12d5c48 (diff)
downloadffmpeg-16c03f2e910a08a90118cc584c8b6a574eb96cd0.tar.gz
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>
Diffstat (limited to 'libavformat/file.c')
-rw-r--r--libavformat/file.c8
1 files changed, 8 insertions, 0 deletions
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 */