+Fri Oct 14 00:57:33 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * configure.in: Add test for unistd.h
+
+ * lock_file.c: Use POSIX_FILE_LOCKS if _POSIX_VERSION is defined
+ in unistd.h
+
Tue Oct 4 15:08:03 1994 Theodore Y. Ts'o (tytso@dcl)
* kdb_dbm.c (decode_princ_contents): Add backwards compatibility
AC_PROG_ARCHIVE_ADD
AC_PROG_RANLIB
AC_PROG_INSTALL
+AC_HAVE_HEADERS(unistd.h)
AppendRule([all:: libkdb5.a])
KRB_INCLUDE
WITH_KRB5ROOT
*
*/
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include <krb5/krb5.h>
#include <krb5/dbm.h>
#include <sys/types.h>
#include <utime.h>
+#ifdef _POSIX_VERSION
+ /* Is there a better way to decide whether or not we should use flock */
+ /* vs. fcntl. Example: broken SunOS tmpfs.... */
+#define POSIX_FILE_LOCKS
+#endif
+
#if defined (POSIX_FILE_LOCKS) && !defined(unicos61)
#include <fcntl.h>
#endif