summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorJohn Carr <jfc@mit.edu>1992-02-23 12:07:27 +0000
committerJohn Carr <jfc@mit.edu>1992-02-23 12:07:27 +0000
commit47fb969665af4592c3662a2108cffd0a40e2da53 (patch)
tree6cc3da4ebd7353b123ea9c590e520bca291565ed /src/include
parentef2eaeb89895bcb548e25f41bbfe4edc598313d6 (diff)
downloadkrb5-47fb969665af4592c3662a2108cffd0a40e2da53.tar.gz
krb5-47fb969665af4592c3662a2108cffd0a40e2da53.tar.xz
krb5-47fb969665af4592c3662a2108cffd0a40e2da53.zip
Always include <sys/file.h>; on AIX or SYSV include <fcntl.h> too
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2214 dc483132-0cff-0310-8789-dd5450dbe970
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__ */