manoj 99/04/14 00:32:45
Modified: pthreads/src/include ap_config.h Log: The last patch was messed up in many ways. Now, really enable pthread accept mutexes for AIX versions that support it. Revision Changes Path 1.5 +7 -7 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.4 retrieving revision 1.5 diff -u -u -r1.4 -r1.5 --- ap_config.h 1999/04/14 06:30:35 1.4 +++ ap_config.h 1999/04/14 07:32:45 1.5 @@ -84,6 +84,10 @@ #include <sys/types.h> #include <sys/stat.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + /* So that we can use inline on some critical functions, and use * GNUC attributes (such as to get -Wall warnings for printf-like * functions). Only do this in gcc 2.7 or later ... it may work @@ -273,10 +277,10 @@ 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 +#ifdef _POSIX_THREAD_PROCESS_SHARED #define USE_PTHREAD_SERIALIZED_ACCEPT +#else +#define USE_FCNTL_SERIALIZED_ACCEPT #endif #ifdef USEBCOPY #define memmove(a,b,c) bcopy(b,a,c) @@ -1049,10 +1053,6 @@ #ifndef LOGNAME_MAX #define LOGNAME_MAX 25 -#endif - -#ifdef HAVE_UNISTD_H -#include <unistd.h> #endif #ifdef ultrix