From 8e86c46be318428edbf898bc7f110587d0a2f9ef Mon Sep 17 00:00:00 2001
From: "Thomas G. Lockhart" <lockhart@fourpalms.org>
Date: Mon, 17 Nov 1997 16:17:14 +0000
Subject: [PATCH] Add storage/ipc.h include file to get read/write function
 declarations.

---
 src/backend/libpq/pqcomm.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c
index 3c3807573f7..0b2874c0944 100644
--- a/src/backend/libpq/pqcomm.c
+++ b/src/backend/libpq/pqcomm.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.26 1997/11/10 05:15:56 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.27 1997/11/17 16:17:14 thomas Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -58,6 +58,7 @@
 #include <libpq/pqsignal.h>
 #include <libpq/auth.h>
 #include <libpq/libpq.h>		/* where the declarations go */
+#include <storage/ipc.h>
 
 /* ----------------
  *		declarations
@@ -595,7 +596,7 @@ StreamServerPort(char *hostName, short portName, int *fdP)
 	size_t		len;
 	int			one = 1;
 
-	family = hostName != NULL ? AF_INET : AF_UNIX;
+	family = ((hostName != NULL) ? AF_INET : AF_UNIX);
 
 	if ((fd = socket(family, SOCK_STREAM, 0)) < 0)
 	{
-- 
GitLab