Always include <sys/file.h>; on AIX or SYSV include <fcntl.h> too
authorJohn Carr <jfc@mit.edu>
Sun, 23 Feb 1992 12:07:27 +0000 (12:07 +0000)
committerJohn Carr <jfc@mit.edu>
Sun, 23 Feb 1992 12:07:27 +0000 (12:07 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2214 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/sysincl.h

index 05315e0770c55794c4ab0cb2b14eb3a5465ac242..26ad0d44a922620fb2a397cc0216a922b4ccfa90 100644 (file)
 #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__ */