Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfd05f89

Browse files
committed
Extend accept/AF_UNIX bug workaround to SCO OpenServer.
1 parent403abf1 commitfd05f89

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
returnSTATUS_ERROR;
412412
}
413413

414-
#ifdefPG_ON_UNIXWARE
414+
#ifdefSCO_ACCEPT_BUG
415415
/*
416-
*OnlyUnixWare 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.4are known to have this bug,
417+
*but it shouldn'thurt 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
#defineDISABLE_COMPLEX_MACRO
66

7+
/* see src/backend/libpq/pqcomm.c */
8+
#defineSCO_ACCEPT_BUG
9+
710
#defineHAS_TEST_AND_SET
811
#defineNEED_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
#defineNEED_I386_TAS_ASM
33

44
/* see src/backend/libpq/pqcomm.c */
5-
#definePG_ON_UNIXWARE
5+
#defineSCO_ACCEPT_BUG
66

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp