From: Theodore Tso Date: Fri, 28 Apr 1995 21:39:20 +0000 (+0000) Subject: Added check for POSIX_FILE_LOCK to enable POSIX file locking X-Git-Tag: krb5-1.0-beta5~112 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=723db42686ac93f589a95e9a99ab6af24c929180;p=krb5.git Added check for POSIX_FILE_LOCK to enable POSIX file locking git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5640 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index 9c4889c22..562428c7e 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,5 +1,8 @@ Fri Apr 28 13:03:23 1995 Theodore Y. Ts'o + * tf_util.c, configure.in: Added check for POSIX_FILE_LOCK to + enable POSIX file locking. + * tf_util.c: Add #include of fcntl.h * month_sname.c, one.c: Remove unnecessary include of conf.h diff --git a/src/lib/krb4/configure.in b/src/lib/krb4/configure.in index 2fe5a826b..cb83a794f 100644 --- a/src/lib/krb4/configure.in +++ b/src/lib/krb4/configure.in @@ -10,6 +10,7 @@ AC_PROG_RANLIB AC_PROG_INSTALL AC_CONST CHECK_FCNTL +KRB5_POSIX_LOCKS AC_HEADER_CHECK(unistd.h,AC_DEFINE(HAS_UNISTD_H)) dnl need MSBFIRST, LSBFIRST, BITS16, BITS32 AC_MSG_CHECKING([if system is msbfirst]) diff --git a/src/lib/krb4/tf_util.c b/src/lib/krb4/tf_util.c index f9054d66f..5693d4dee 100644 --- a/src/lib/krb4/tf_util.c +++ b/src/lib/krb4/tf_util.c @@ -65,7 +65,9 @@ int utimes(path, times) #define LOCK_NB 4 /* don't block when locking */ #define LOCK_UN 8 /* unlock */ #endif -#ifdef POSIX + + +#ifdef POSIX_FILE_LOCKS #include /*