summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1994-10-07 18:21:52 +0000
committerTheodore Tso <tytso@mit.edu>1994-10-07 18:21:52 +0000
commit94bb21da1a1981e23c17dea921fdc748ab16da38 (patch)
tree154b9cb59116c02f0a59ab39d7ef3bf801025e64 /src
parent730151273020b6fd7262e34ad323c017a30951c8 (diff)
downloadkrb5-94bb21da1a1981e23c17dea921fdc748ab16da38.tar.gz
krb5-94bb21da1a1981e23c17dea921fdc748ab16da38.tar.xz
krb5-94bb21da1a1981e23c17dea921fdc748ab16da38.zip
Include unistd.h first, and don't try to include sys/types.h first.
(posix compatibility) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4483 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/os/lock_file.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/krb5/os/lock_file.c b/src/lib/krb5/os/lock_file.c
index 6ad5bc0f6..aea0141d1 100644
--- a/src/lib/krb5/os/lock_file.c
+++ b/src/lib/krb5/os/lock_file.c
@@ -25,16 +25,15 @@
*/
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#include <krb5/krb5.h>
#include <krb5/libos.h>
#include <stdio.h>
-#if HAVE_UNISTD_H
-#include <sys/types.h>
-#include <unistd.h>
-#endif
-
#ifdef _POSIX_VERSION
/* Is there a better way to decide whether or not we should use flock */
/* vs. fcntl. Example: broken SunOS tmpfs.... */