aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-08-26 03:15:12 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-08-26 03:15:12 +0000
commita310a1d80c6535774115838010f9c337d08d45cc (patch)
treead1e6391a94f8c22a5e51b6ea849fd48d2d0512f
parentf26b91761bd25f9da2f97d818f60ae68588888c2 (diff)
downloadpostgresql-a310a1d80c6535774115838010f9c337d08d45cc.tar.gz
postgresql-a310a1d80c6535774115838010f9c337d08d45cc.zip
Some more mop-up for Windows IPv6 support. Andrew Dunstan
-rw-r--r--src/include/port/win32/sys/socket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/port/win32/sys/socket.h b/src/include/port/win32/sys/socket.h
index 86950699e4d..c9798060d6c 100644
--- a/src/include/port/win32/sys/socket.h
+++ b/src/include/port/win32/sys/socket.h
@@ -5,6 +5,7 @@
*
* Note: Don't include <wingdi.h> directly. It causes compile errors.
*/
+#include <ws2tcpip.h>
#include <winsock2.h>
#undef ERROR
#undef small
@@ -13,4 +14,11 @@
#ifdef PGERROR
#define ERROR PGERROR
+/*
+ * we can't use the windows gai_strerror{AW} functions because
+ * they are defined inline in the MS header files. So we'll use our
+ * own
+ */
+#undef gai_strerror
+
#endif