Add storage/ipc.h include file to get read/write function declarations.
authorThomas G. Lockhart
Mon, 17 Nov 1997 16:17:14 +0000 (16:17 +0000)
committerThomas G. Lockhart
Mon, 17 Nov 1997 16:17:14 +0000 (16:17 +0000)
src/backend/libpq/pqcomm.c

index 3c3807573f7187bb8db00b1662a1bb4347fdccb0..0b2874c094427cbc3da9e8be80c32f96e237e229 100644 (file)
@@ -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 
 #include 
 #include        /* where the declarations go */
+#include 
 
 /* ----------------
  *     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)
    {