Include unistd.h first, and don't try to include sys/types.h first.
authorTheodore Tso <tytso@mit.edu>
Fri, 7 Oct 1994 18:21:52 +0000 (18:21 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 7 Oct 1994 18:21:52 +0000 (18:21 +0000)
(posix compatibility)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4483 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/lock_file.c

index 6ad5bc0f6ed71b9a1bf207d6b828e515fda28122..aea0141d15aa7e133bfaf509e4f4a7608f763cb8 100644 (file)
  */
 
 
+#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.... */