projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44f8393
)
file: Add S_ISFIFO compatability macro
author
Derek Buitenhuis
<derek.buitenhuis@gmail.com>
Fri, 7 Sep 2012 13:45:09 +0000
(09:45 -0400)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 9 Sep 2012 18:23:14 +0000
(20:23 +0200)
Not all systems have S_ISFIFO.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/file.c
patch
|
blob
|
history
diff --git
a/libavformat/file.c
b/libavformat/file.c
index
4e8129e
..
288275f
100644
(file)
--- 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 */