summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/samples/fmode/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/samples/fmode/test.c')
-rw-r--r--winsup/mingw/samples/fmode/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/mingw/samples/fmode/test.c b/winsup/mingw/samples/fmode/test.c
index b0488b2ea..0ec364534 100644
--- a/winsup/mingw/samples/fmode/test.c
+++ b/winsup/mingw/samples/fmode/test.c
@@ -9,7 +9,8 @@
*/
#include <stdio.h>
-#include <fcntl.h> /* Required to get _fmode and _O_BINARY */
+#include <stdlib.h> /* _fmode */
+#include <fcntl.h> /* _O_BINARY */
main ()
{