Skip to content

Commit 8e86c46

Browse files
author
Thomas G. Lockhart
committed
Add storage/ipc.h include file to get read/write function declarations.
1 parent c47eaac commit 8e86c46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.26 1997/11/10 05:15:56 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.27 1997/11/17 16:17:14 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -58,6 +58,7 @@
5858
#include <libpq/pqsignal.h>
5959
#include <libpq/auth.h>
6060
#include <libpq/libpq.h> /* where the declarations go */
61+
#include <storage/ipc.h>
6162

6263
/* ----------------
6364
* declarations
@@ -595,7 +596,7 @@ StreamServerPort(char *hostName, short portName, int *fdP)
595596
size_t len;
596597
int one = 1;
597598

598-
family = hostName != NULL ? AF_INET : AF_UNIX;
599+
family = ((hostName != NULL) ? AF_INET : AF_UNIX);
599600

600601
if ((fd = socket(family, SOCK_STREAM, 0)) < 0)
601602
{

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