From fea2ffa7d8ac6c3bf773247f7aa0a1f5fea653f7 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 7 Aug 2003 19:37:13 +0000 Subject: [PATCH] SCO_ACCEPT_BUG code didn't get updated for new SockAddr struct definition. --- src/backend/libpq/pqcomm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index a3d878edfa..72d444ad8f 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -30,7 +30,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.163 2003/08/04 02:39:59 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.164 2003/08/07 19:37:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -501,8 +501,8 @@ StreamConnection(int server_fd, Port *port) * UnixWare 7+ and OpenServer 5.0.4 are known to have this bug, but it * shouldn't hurt to catch it for all versions of those platforms. */ - if (port->raddr.sa.sa_family == 0) - port->raddr.sa.sa_family = AF_UNIX; + if (port->raddr.addr.ss_family == 0) + port->raddr.addr.ss_family = AF_UNIX; #endif /* fill in the server (local) address */ -- 2.40.0