manoj 99/09/20 16:14:20
Modified: src/lib/apr/locks/unix locks.h
Log:
USE_FCNTL_SERIALIZE requires fcntl.h on Solaris, but it doesn't need
sys/file.h. Untested on Solaris, but APR compiles on Linux with both
USE_FCNTL_SERIALIZE and USE_FLOCK_SERIALIZE.
Revision Changes Path
1.3 +4 -1 apache-2.0/src/lib/apr/locks/unix/locks.h
Index: locks.h
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/locks/unix/locks.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -u -r1.2 -r1.3
--- locks.h 1999/09/12 11:06:25 1.2
+++ locks.h 1999/09/20 23:14:18 1.3
@@ -65,9 +65,12 @@
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
-#elif defined (USE_FLOCK_SERIALIZE) || (USE_FCNTL_SERIALIZE)
+#elif defined (USE_FLOCK_SERIALIZE)
#include <sys/file.h>
#include <stdio.h>
+#elif defined (USE_FCNTL_SERIALIZE)
+#include <stdio.h>
+#include <fcntl.h>
#endif
#include <pthread.h>
|