aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-01-10 21:39:16 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-01-10 21:39:16 +0200
commit163f4f479b50edfc153e9f2e77bdd9cd070e37ff (patch)
treeb141fc91d7d6f7c26fa49bba666fd431ee209a7a /awk.h
parent108a61e2819b37ffd95e81b81b29e5946d4baa03 (diff)
downloadegawk-163f4f479b50edfc153e9f2e77bdd9cd070e37ff.tar.gz
egawk-163f4f479b50edfc153e9f2e77bdd9cd070e37ff.tar.bz2
egawk-163f4f479b50edfc153e9f2e77bdd9cd070e37ff.zip
Relocate include of fcntl.h.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/awk.h b/awk.h
index 8ac94e5b..84a7d18e 100644
--- a/awk.h
+++ b/awk.h
@@ -49,12 +49,6 @@
#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)
@@ -115,6 +109,9 @@ extern int errno;
#define MALLOC_ARG_T size_t
#ifndef VMS
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
#include <sys/types.h>
#include <sys/stat.h>
#else /* VMS */
@@ -162,6 +159,10 @@ typedef int off_t;
#include "vms/redirect.h"
#endif /*VMS*/
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
#ifndef HAVE_VPRINTF
#error "you lose: you need a system with vfprintf"
#endif /* HAVE_VPRINTF */