Bugzilla bug #33043: use System V shared memory and semaphores on NSPRPUB_RELEASE_3_5_BRANCH
authorwtc%netscape.com
Thu, 23 Mar 2000 19:07:34 +0000
branchNSPRPUB_RELEASE_3_5_BRANCH
changeset 1255 a79bf36d84d49ba9eba4722f02fdac640da8570b
parent 1014 8c067b720b4b4b9cb9eadff3b4fda1e44b1703be
push idunknown
push userunknown
push dateunknown
bugs33043
Bugzilla bug #33043: use System V shared memory and semaphores on Solaris 2.5.1 because the POSIX shared memory and semaphore functions fail with ENOSYS. (NSPRPUB_RELEASE_3_5_BRANCH)
pr/include/md/_solaris.h
--- a/pr/include/md/_solaris.h
+++ b/pr/include/md/_solaris.h
@@ -65,18 +65,23 @@
 #if !defined(sparc) || !defined(IS_64)
 #define _PR_HAVE_ATOMIC_CAS
 #endif
 #endif
 
 #define _PR_POLL_AVAILABLE
 #define _PR_USE_POLL
 #define _PR_STAT_HAS_ST_ATIM
+#ifdef SOLARIS2_5
+#define _PR_HAVE_SYSV_SEMAPHORES
+#define PR_HAVE_SYSV_NAMED_SHARED_MEMORY
+#else
 #define _PR_HAVE_POSIX_SEMAPHORES
 #define PR_HAVE_POSIX_NAMED_SHARED_MEMORY
+#endif
 
 #include "prinrval.h"
 PR_EXTERN(PRIntervalTime) _MD_Solaris_GetInterval(void);
 #define _MD_GET_INTERVAL                  _MD_Solaris_GetInterval
 PR_EXTERN(PRIntervalTime) _MD_Solaris_TicksPerSecond(void);
 #define _MD_INTERVAL_PER_SEC              _MD_Solaris_TicksPerSecond
 
 #if defined(_PR_HAVE_ATOMIC_OPS)