#include fcntl.h in cygwin builds
authorJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 13 Aug 2002 17:13:27 +0000 (17:13 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 13 Aug 2002 17:13:27 +0000 (17:13 +0000)
src/flac/file.c
src/libFLAC/file_decoder.c
src/libOggFLAC/file_decoder.c

index 77df50b..0a9f3bd 100644 (file)
@@ -26,7 +26,8 @@
 #include <unistd.h> /* for chown() */
 #endif
 #ifdef __CYGWIN__
-#include <io.h> /* for _setmode(), O_BINARY */
+#include <io.h> /* for setmode(), O_BINARY */
+#include <fcntl.h> /* for _O_BINARY */
 #endif
 #include <sys/stat.h> /* for stat(), maybe chmod() */
 #include <string.h> /* for strrchr() */
index 574956c..e80dec4 100644 (file)
@@ -25,7 +25,8 @@
 #include <io.h> /* for _setmode() */
 #include <fcntl.h> /* for _O_BINARY */
 #elif defined __CYGWIN__
-#include <io.h> /* for _setmode(), O_BINARY */
+#include <io.h> /* for setmode(), O_BINARY */
+#include <fcntl.h> /* for _O_BINARY */
 #endif
 #include "FLAC/assert.h"
 #include "protected/file_decoder.h"
index 0c5c71c..8995783 100644 (file)
@@ -25,7 +25,8 @@
 #include <io.h> /* for _setmode() */
 #include <fcntl.h> /* for _O_BINARY */
 #elif defined __CYGWIN__
-#include <io.h> /* for _setmode(), O_BINARY */
+#include <io.h> /* for setmode(), O_BINARY */
+#include <fcntl.h> /* for _O_BINARY */
 #endif
 #include "FLAC/assert.h"
 #include "protected/file_decoder.h"