Added check for POSIX_FILE_LOCK to enable POSIX file locking
authorTheodore Tso <tytso@mit.edu>
Fri, 28 Apr 1995 21:39:20 +0000 (21:39 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 28 Apr 1995 21:39:20 +0000 (21:39 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5640 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/ChangeLog
src/lib/krb4/configure.in
src/lib/krb4/tf_util.c

index 9c4889c224f397dfc6807468122bb2e2619073df..562428c7e28d84e90c67d0a38443e3fb3ae54e31 100644 (file)
@@ -1,5 +1,8 @@
 Fri Apr 28 13:03:23 1995  Theodore Y. Ts'o  <tytso@dcl>
 
+       * 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
index 2fe5a826bc98f909928677a85860786b84a53727..cb83a794fe1d4ff3513bea27d088924e96458d90 100644 (file)
@@ -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])
index f9054d66f7ebca979c35af0f7edfc934702eadcd..5693d4deefe561879e5fccec989fc4eb3c9d7fab 100644 (file)
@@ -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 <fcntl.h>
 
 /*