From: Theodore Tso Date: Fri, 7 Oct 1994 18:21:52 +0000 (+0000) Subject: Include unistd.h first, and don't try to include sys/types.h first. X-Git-Tag: krb5-1.0-beta5~1144 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=94bb21da1a1981e23c17dea921fdc748ab16da38;p=krb5.git 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 --- 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.... */