diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-01-10 21:39:16 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-01-10 21:39:16 +0200 |
commit | 163f4f479b50edfc153e9f2e77bdd9cd070e37ff (patch) | |
tree | b141fc91d7d6f7c26fa49bba666fd431ee209a7a /awk.h | |
parent | 108a61e2819b37ffd95e81b81b29e5946d4baa03 (diff) | |
download | egawk-163f4f479b50edfc153e9f2e77bdd9cd070e37ff.tar.gz egawk-163f4f479b50edfc153e9f2e77bdd9cd070e37ff.tar.bz2 egawk-163f4f479b50edfc153e9f2e77bdd9cd070e37ff.zip |
Relocate include of fcntl.h.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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 */ |