aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-01-08 23:03:50 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-01-08 23:03:50 +0200
commit0cc0973babcc4c35557aade37be5926a3f6023c9 (patch)
treef4ae9f5f06a2b4483d6a7bb4ae3eb3e2c92ce98b /awk.h
parenta56b8c1a4b2495833fedd37b83305f5388cd2c2e (diff)
downloadegawk-0cc0973babcc4c35557aade37be5926a3f6023c9.tar.gz
egawk-0cc0973babcc4c35557aade37be5926a3f6023c9.tar.bz2
egawk-0cc0973babcc4c35557aade37be5926a3f6023c9.zip
PC fiexes from Eli.
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 */