The type of the third argument for accept, recvfrom, getsockname, and
authorwtc
Fri, 08 May 1998 18:50:15 +0000
changeset 111 ac0b29f5fb65e715407b34f81b5ddb260ea37d96
parent 110 b7522c7bb2b557edc0141adfa2736cc416eb38e2
child 112 b720c8244ce62cd97758c3ef5f5b0e8a6b854845
push idunknown
push userunknown
push dateunknown
The type of the third argument for accept, recvfrom, getsockname, and getpeername is 'int', not 'size_t'.
pr/src/md/unix/unix.c
--- a/pr/src/md/unix/unix.c
+++ b/pr/src/md/unix/unix.c
@@ -40,20 +40,20 @@
 
 /*
  * Make sure _PRSockLen_t is 32-bit, because we will cast a PRUint32* or
  * PRInt32* pointer to a _PRSockLen_t* pointer.
  */
 #if defined(IRIX) || defined(HPUX) || defined(OSF1) || defined(SOLARIS) \
     || defined(AIX4_1) || defined(LINUX) || defined(SONY) \
     || defined(BSDI) || defined(SCO) || defined(NEC) || defined(SNI) \
-    || defined(SUNOS4) || defined(NCR)
+    || defined(SUNOS4) || defined(NCR) || defined(RHAPSODY)
 #define _PRSockLen_t int
 #elif (defined(AIX) && !defined(AIX4_1)) || defined(FREEBSD) \
-    || defined(UNIXWARE) || defined(RHAPSODY)
+    || defined(UNIXWARE)
 #define _PRSockLen_t size_t
 #else
 #error "Cannot determine architecture"
 #endif
 
 /*
 ** Global lock variable used to bracket calls into rusty libraries that
 ** aren't thread safe (like libc, libX, etc).