Hi-
Someone just posted w/ a problem installing Data::UUID due to the use
of lockf(2).

Here's a patch to UUID.h which should solve the problem. (Well, make
test succeeds :).

rick

--- UUID.h      Tue Dec 11 12:01:00 2001
+++ ../UUID.h   Thu Jan 31 22:11:29 2002
@@ -41,6 +41,9 @@
 #if defined __CYGWIN__
 #define LOCK(f)
 #define UNLOCK(f)
+#elif defined(__APPLE__) && defined(__MACH__) /* MacOSX i hope */
+#define LOCK(f)        flock(fileno(f),LOCK_EX)
+#define UNLOCK(f)      flock(fileno(f),LOCK_UN)
 #else
 #define LOCK(f)                lockf(fileno(f),F_LOCK,0);
 #define UNLOCK(f)      lockf(fileno(f),F_ULOCK,0);

Reply via email to