+Fri Oct 7 13:23:18 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * lock_file.c: Use POSIX_FILE_LOCKS if _POSIX_VERSION is defined
+ in unistd.h
+
Thu Sep 22 20:46:08 1994 Theodore Y. Ts'o (tytso@dcl)
* configure.in: Put in correct dependency order of configure.in
#include <stdio.h>
-/* POSIX_* are auto-magically defined in <krb5/config.h> at source
- configuration time. */
+#if HAVE_UNISTD_H
+#include <sys/types.h>
+#include <unistd.h>
+#endif
+
+#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
+
#ifdef POSIX_FILE_LOCKS
#include <errno.h>