manoj 99/04/13 23:30:35
Modified: pthreads/src/include ap_config.h Log: Allow AIX versions that support cross-process pthread mutexes to use them for accept serialization. This should be applicable for apache 1.3, and since this #define is specified by POSIX, it should theoretically be applicable for all platforms. Revision Changes Path 1.4 +5 -0 apache-apr/pthreads/src/include/ap_config.h Index: ap_config.h =================================================================== RCS file: /home/cvs/apache-apr/pthreads/src/include/ap_config.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -u -r1.3 -r1.4 --- ap_config.h 1999/03/17 17:01:07 1.3 +++ ap_config.h 1999/04/14 06:30:35 1.4 @@ -272,7 +272,12 @@ #ifdef NEED_RLIM_T typedef int rlim_t; #endif +/* Some versions of AIX support cross-process pthread mutexes; some don't. */ +#if _POSIX_THREAD_PROCESS_SHARED #define USE_FCNTL_SERIALIZED_ACCEPT +#else +#define USE_PTHREAD_SERIALIZED_ACCEPT +#endif #ifdef USEBCOPY #define memmove(a,b,c) bcopy(b,a,c) #endif