--- ./src/backend/libpq/auth.c.00 2003-09-26 15:27:31.000000000 +0000 +++ ./src/backend/libpq/auth.c 2003-11-08 22:54:32.000000000 +0000 @@ -480,6 +480,7 @@ * only if it is defined and SO_PEERCRED isn't. */ #if defined(HAVE_STRUCT_FCRED) || defined(HAVE_STRUCT_SOCKCRED) +#ifndef _SCO_DS /* * Receive credentials on next message receipt, BSD/OS, @@ -495,6 +496,7 @@ errmsg("could not enable credential reception: %m"))); } #endif +#endif if (port->raddr.addr.ss_family == AF_UNIX) sendAuthRequest(port, AUTH_REQ_SCM_CREDS); #endif --- ./src/backend/libpq/pqcomm.c.00 2003-09-25 06:57:59.000000000 +0000 +++ ./src/backend/libpq/pqcomm.c 2003-11-08 22:55:19.000000000 +0000 @@ -312,6 +312,7 @@ continue; } +#ifndef _SCO_DS if (!IS_AF_UNIX(addr->ai_family)) { if ((setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, @@ -324,8 +325,10 @@ continue; } } +#endif #ifdef IPV6_V6ONLY +#ifndef _SCO_DS if (addr->ai_family == AF_INET6) { if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, @@ -339,6 +342,7 @@ } } #endif +#endif /* * Note: This might fail on some OS's, like Linux older than @@ -548,6 +552,7 @@ } /* select NODELAY and KEEPALIVE options if it's a TCP connection */ +#ifndef _SCO_DS if (!IS_AF_UNIX(port->laddr.addr.ss_family)) { int on; @@ -569,6 +574,7 @@ return STATUS_ERROR; } } +#endif return STATUS_OK; } --- ./src/interfaces/libpq/fe-connect.c.00 2003-10-18 05:02:06.000000000 +0000 +++ ./src/interfaces/libpq/fe-connect.c 2003-11-08 22:55:41.000000000 +0000 @@ -797,6 +797,7 @@ static int connectNoDelay(PGconn *conn) { +#ifndef _SCO_DS #ifdef TCP_NODELAY int on = 1; @@ -812,6 +813,7 @@ return 0; } #endif +#endif return 1; } --- ./src/template/sco.00 2003-10-09 03:20:34.000000000 +0000 +++ ./src/template/sco 2003-11-06 23:07:14.000000000 +0000 @@ -1,2 +1,3 @@ -CC="$CC -b elf" - +if test "$GCC" != yes ; then + CC="$CC -b elf" +fi