aboutsummaryrefslogtreecommitdiff
path: root/src/port/getaddrinfo.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-07-16 20:28:01 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-07-16 20:28:01 +0000
commit5c75ff2af412d8045c8f527494db93f0a791c6d3 (patch)
tree3382ee51b49470188437264e5c66d0dc20c2c4c3 /src/port/getaddrinfo.c
parent93120f3501cc9603bfbaf87dea815feb77b782b3 (diff)
downloadpostgresql-5c75ff2af412d8045c8f527494db93f0a791c6d3.tar.gz
postgresql-5c75ff2af412d8045c8f527494db93f0a791c6d3.zip
Include libpq/pqcomm.h to ensure we have correct knowledge of
HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN. Per results of pgcheckdefines.
Diffstat (limited to 'src/port/getaddrinfo.c')
-rw-r--r--src/port/getaddrinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/port/getaddrinfo.c b/src/port/getaddrinfo.c
index 51e31c18c06..6ebfdc926a7 100644
--- a/src/port/getaddrinfo.c
+++ b/src/port/getaddrinfo.c
@@ -8,7 +8,7 @@
* platform, we'll need to split this file and provide a separate configure
* test for getnameinfo().
*
- * Windows may or may not have these routines, so we handle Windows special
+ * Windows may or may not have these routines, so we handle Windows specially
* by dynamically checking for their existence. If they already exist, we
* use the Windows native routines, but if not, we use our own.
*
@@ -16,7 +16,7 @@
* Copyright (c) 2003-2006, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/getaddrinfo.c,v 1.24 2006/06/07 22:24:46 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/getaddrinfo.c,v 1.25 2006/07/16 20:28:01 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -30,6 +30,7 @@
#include <arpa/inet.h>
#include "getaddrinfo.h"
+#include "libpq/pqcomm.h" /* needed for struct sockaddr_storage */
#ifdef WIN32