From 163f4f479b50edfc153e9f2e77bdd9cd070e37ff Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 10 Jan 2011 21:39:16 +0200 Subject: Relocate include of fcntl.h. --- awk.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'awk.h') 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 #include -#ifdef HAVE_FCNTL_H -#include -#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 +#endif #include #include #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 */ -- cgit v1.2.3