1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +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) 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;
}
#ifdef PG_ON_UNIXWARE
#ifdef SCO_ACCEPT_BUG
/*
* Only UnixWare 7+ are known to have this bug, but it shouldn't
* hurt it catch if for all of them.
* UnixWare 7+ and OpenServer 5.0.4 are known to have this bug,
* but it shouldn't hurt it catch if for all of them.
*/
if (port->raddr.sa.sa_family == 0)
port->raddr.sa.sa_family = AF_UNIX;