Skip to content

Commit 2d9a001

Browse files
committed
Don't refer to AF_UNIX in code not protected with HAVE_UNIX_SOCKETS.
1 parent df63503 commit 2d9a001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
3131
* Portions Copyright (c) 1994, Regents of the University of California
3232
*
33-
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.159 2003/07/23 23:30:40 tgl Exp $
33+
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.160 2003/07/24 00:02:53 tgl Exp $
3434
*
3535
*-------------------------------------------------------------------------
3636
*/
@@ -322,7 +322,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
322322
ereport(LOG,
323323
(errcode_for_socket_access(),
324324
errmsg("failed to bind server socket: %m"),
325-
(addr->ai_family == AF_UNIX) ?
325+
(IS_AF_UNIX(addr->ai_family)) ?
326326
errhint("Is another postmaster already running on port %d?"
327327
" If not, remove socket node \"%s\" and retry.",
328328
(int) portNumber, sock_path) :

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