mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Don't refer to AF_UNIX in code not protected with HAVE_UNIX_SOCKETS.
This commit is contained in:
parent
df63503dc2
commit
2d9a001c9e
@ -30,7 +30,7 @@
|
|||||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.159 2003/07/23 23:30:40 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.160 2003/07/24 00:02:53 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -322,7 +322,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
|
|||||||
ereport(LOG,
|
ereport(LOG,
|
||||||
(errcode_for_socket_access(),
|
(errcode_for_socket_access(),
|
||||||
errmsg("failed to bind server socket: %m"),
|
errmsg("failed to bind server socket: %m"),
|
||||||
(addr->ai_family == AF_UNIX) ?
|
(IS_AF_UNIX(addr->ai_family)) ?
|
||||||
errhint("Is another postmaster already running on port %d?"
|
errhint("Is another postmaster already running on port %d?"
|
||||||
" If not, remove socket node \"%s\" and retry.",
|
" If not, remove socket node \"%s\" and retry.",
|
||||||
(int) portNumber, sock_path) :
|
(int) portNumber, sock_path) :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user