Skip to content

Commit fd05f89

Browse files
committed
Extend accept/AF_UNIX bug workaround to SCO OpenServer.
1 parent 403abf1 commit fd05f89

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
3030
* Portions Copyright (c) 1994, Regents of the University of California
3131
*
32-
* $Id: pqcomm.c,v 1.112 2000/11/14 01:15:00 momjian Exp $
32+
* $Id: pqcomm.c,v 1.113 2000/11/21 23:03:53 petere Exp $
3333
*
3434
*-------------------------------------------------------------------------
3535
*/
@@ -411,10 +411,10 @@ StreamConnection(int server_fd, Port *port)
411411
return STATUS_ERROR;
412412
}
413413

414-
#ifdef PG_ON_UNIXWARE
414+
#ifdef SCO_ACCEPT_BUG
415415
/*
416-
* Only UnixWare 7+ are known to have this bug, but it shouldn't
417-
* hurt it catch if for all of them.
416+
* UnixWare 7+ and OpenServer 5.0.4 are known to have this bug,
417+
* but it shouldn't hurt it catch if for all of them.
418418
*/
419419
if (port->raddr.sa.sa_family == 0)
420420
port->raddr.sa.sa_family = AF_UNIX;

src/include/port/sco.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
#define DISABLE_COMPLEX_MACRO
66

7+
/* see src/backend/libpq/pqcomm.c */
8+
#define SCO_ACCEPT_BUG
9+
710
#define HAS_TEST_AND_SET
811
#define NEED_I386_TAS_ASM
912

src/include/port/unixware.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define NEED_I386_TAS_ASM
33

44
/* see src/backend/libpq/pqcomm.c */
5-
#define PG_ON_UNIXWARE
5+
#define SCO_ACCEPT_BUG
66

77
/***************************************
88
* Define this if you are compiling with

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy