summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/sysincl.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/include/krb5/sysincl.h b/src/include/krb5/sysincl.h
index 05315e077..26ad0d44a 100644
--- a/src/include/krb5/sysincl.h
+++ b/src/include/krb5/sysincl.h
@@ -44,19 +44,18 @@
#endif
#include <sys/stat.h> /* struct stat, stat() */
#include <sys/param.h> /* MAXPATHLEN */
-#if defined(unix) || defined(__unix__)
+
#include <sys/file.h> /* prototypes for file-related
syscalls; flags for open &
friends */
-#ifdef SYSV
-#include <sys/fcntl.h>
-#endif
-
#ifndef L_SET
#define L_SET 0 /* absolute offset */
#define L_INCR 1 /* relative to current offset */
#define L_XTND 2 /* relative to end of file */
#endif /* L_SET */
+#if defined(SYSV) || defined(_AIX)
+#include <fcntl.h>
#endif
+
#endif /* KRB5_SYSINCL__ */