aboutsummaryrefslogtreecommitdiffstats
path: root/include/filecntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/filecntl.h')
-rw-r--r--include/filecntl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/filecntl.h b/include/filecntl.h
index 31667a1..9bcbab8 100644
--- a/include/filecntl.h
+++ b/include/filecntl.h
@@ -42,4 +42,12 @@
# endif
#endif
+/* Make sure O_BINARY and O_TEXT are defined to avoid Windows-specific code. */
+#if !defined (O_BINARY)
+# define O_BINARY 0
+#endif
+#if !defined (O_TEXT)
+# define O_TEXT 0
+#endif
+
#endif /* ! _FILECNTL_H_ */