aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/awk.h b/awk.h
index ad632e66..8ac94e5b 100644
--- a/awk.h
+++ b/awk.h
@@ -49,6 +49,12 @@
#endif /* HAVE_LIMITS_H */
#include <ctype.h>
#include <setjmp.h>
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
#include "gettext.h"
#define _(msgid) gettext(msgid)
@@ -147,10 +153,6 @@ typedef int off_t;
#endif /* HAVE_STRINGS_H */
#endif /* not HAVE_STRING_H */
-#if ! defined(O_BINARY)
-#define O_BINARY 0
-#endif
-
#if HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */