#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__ */