Bugzilla bug 138532: use pipes instead of semaphores for NetBSD, which does
authorwtc%netscape.com
Thu, 16 May 2002 13:36:02 +0000
changeset 3133 f06d4144d4028f592f293d1b127760193bbb3251
parent 3131 bd23d6d603bc21aacc82ff946ae982cf2d1bd868
child 3134 3ed388b98ae439900dadb3a858342567ffe050a7
push idunknown
push userunknown
push dateunknown
bugs138532
Bugzilla bug 138532: use pipes instead of semaphores for NetBSD, which does not have semaphore.h. Thanks to Chris Seawood <seawood@netscape.com> for the patch. Modified files: sslmutex.h sslmutex.c
security/nss/lib/ssl/sslmutex.c
security/nss/lib/ssl/sslmutex.h
--- a/security/nss/lib/ssl/sslmutex.c
+++ b/security/nss/lib/ssl/sslmutex.c
@@ -82,17 +82,17 @@ static SECStatus single_process_sslMutex
     if (!pMutex->u.sslLock) {
         PORT_SetError(PR_INVALID_ARGUMENT_ERROR);
         return SECFailure;
     }
     PR_Lock(pMutex->u.sslLock);
     return SECSuccess;
 }
 
-#if defined(LINUX) || defined(AIX) || defined(VMS) || defined(BEOS) || defined(BSDI)
+#if defined(LINUX) || defined(AIX) || defined(VMS) || defined(BEOS) || defined(BSDI) || defined(NETBSD)
 
 #include <unistd.h>
 #include <fcntl.h>
 #include <string.h>
 #include <errno.h>
 #include "unix_err.h"
 #include "pratom.h"
 
--- a/security/nss/lib/ssl/sslmutex.h
+++ b/security/nss/lib/ssl/sslmutex.h
@@ -72,17 +72,17 @@ typedef struct
 #endif
         PRLock* sslLock;
         HANDLE sslMutx;
     } u;
 } sslMutex;
 
 typedef int    sslPID;
 
-#elif defined(LINUX) || defined(AIX) || defined(VMS) || defined(BEOS) || defined(BSDI)
+#elif defined(LINUX) || defined(AIX) || defined(VMS) || defined(BEOS) || defined(BSDI) || defined(NETBSD)
 
 #include <sys/types.h>
 #include "prtypes.h"
 
 typedef struct { 
     PRBool isMultiProcess;
     union {
         PRLock* sslLock;