Commit fd05f896 authored by Peter Eisentraut's avatar Peter Eisentraut

Extend accept/AF_UNIX bug workaround to SCO OpenServer.

parent 403abf1c
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Id: pqcomm.c,v 1.112 2000/11/14 01:15:00 momjian Exp $ * $Id: pqcomm.c,v 1.113 2000/11/21 23:03:53 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -411,10 +411,10 @@ StreamConnection(int server_fd, Port *port) ...@@ -411,10 +411,10 @@ StreamConnection(int server_fd, Port *port)
return STATUS_ERROR; return STATUS_ERROR;
} }
#ifdef PG_ON_UNIXWARE #ifdef SCO_ACCEPT_BUG
/* /*
* Only UnixWare 7+ are known to have this bug, but it shouldn't * UnixWare 7+ and OpenServer 5.0.4 are known to have this bug,
* hurt it catch if for all of them. * but it shouldn't hurt it catch if for all of them.
*/ */
if (port->raddr.sa.sa_family == 0) if (port->raddr.sa.sa_family == 0)
port->raddr.sa.sa_family = AF_UNIX; port->raddr.sa.sa_family = AF_UNIX;
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
#define DISABLE_COMPLEX_MACRO #define DISABLE_COMPLEX_MACRO
/* see src/backend/libpq/pqcomm.c */
#define SCO_ACCEPT_BUG
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
#define NEED_I386_TAS_ASM #define NEED_I386_TAS_ASM
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#define NEED_I386_TAS_ASM #define NEED_I386_TAS_ASM
/* see src/backend/libpq/pqcomm.c */ /* see src/backend/libpq/pqcomm.c */
#define PG_ON_UNIXWARE #define SCO_ACCEPT_BUG
/*************************************** /***************************************
* Define this if you are compiling with * Define this if you are compiling with
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment