Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/samples/fmode/all.c')
-rw-r--r--winsup/mingw/samples/fmode/all.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/mingw/samples/fmode/all.c b/winsup/mingw/samples/fmode/all.c
index a6f7d51f7..f052b9306 100644
--- a/winsup/mingw/samples/fmode/all.c
+++ b/winsup/mingw/samples/fmode/all.c
@@ -13,7 +13,10 @@
*/
#include <stdio.h>
-#include <fcntl.h>
+#include <stdlib.h> /* _fmode */
+#include <fcntl.h> /* _O_BINARY */
+#include <io.h> /* _setmode */
+
unsigned int _CRT_fmode = _O_BINARY;