1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-09 18:21:05 +03:00

Extend accept/AF_UNIX bug workaround to SCO OpenServer.

This commit is contained in:
Peter Eisentraut 2000-11-21 23:03:54 +00:00
parent 403abf1ca5
commit fd05f89645
3 changed files with 8 additions and 5 deletions

View File

@ -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)
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;

View File

@ -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

View File

@ -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