From 94bb21da1a1981e23c17dea921fdc748ab16da38 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 7 Oct 1994 18:21:52 +0000 Subject: [PATCH] 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 --- src/lib/krb5/os/lock_file.c | 9 ++++----- 1 file 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 +#endif + #include #include #include -#if HAVE_UNISTD_H -#include -#include -#endif - #ifdef _POSIX_VERSION /* Is there a better way to decide whether or not we should use flock */ /* vs. fcntl. Example: broken SunOS tmpfs.... */ -- 2.26.2