summaryrefslogtreecommitdiff
path: root/libavformat/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/file.c')
-rw-r--r--libavformat/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/file.c b/libavformat/file.c
index 827541d1ae..88ac4db8d4 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -22,7 +22,7 @@
#include "libavutil/avstring.h"
#include "avformat.h"
#include <fcntl.h>
-#ifdef HAVE_SETMODE
+#if HAVE_SETMODE
#include <io.h>
#endif
#include <unistd.h>
@@ -107,7 +107,7 @@ static int pipe_open(URLContext *h, const char *filename, int flags)
fd = 0;
}
}
-#ifdef HAVE_SETMODE
+#if HAVE_SETMODE
setmode(fd, O_BINARY);
#endif
h->priv_data = (void *)(size_t)fd;