summaryrefslogtreecommitdiff
path: root/src/include/getaddrinfo.h
diff options
context:
space:
mode:
authorBruce Momjian2006-06-07 22:24:46 +0000
committerBruce Momjian2006-06-07 22:24:46 +0000
commit399a36a75d2d06bfdb91402713d408271b4833ba (patch)
treeb8391f6bda4680d37ac430c3270c67bde979d842 /src/include/getaddrinfo.h
parent877e296306a2017a18fc7086e9742c8ee3e0a665 (diff)
Prepare code to be built by MSVC:
o remove many WIN32_CLIENT_ONLY defines o add WIN32_ONLY_COMPILER define o add 3rd argument to open() for portability o add include/port/win32_msvc directory for system includes Magnus Hagander
Diffstat (limited to 'src/include/getaddrinfo.h')
-rw-r--r--src/include/getaddrinfo.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/getaddrinfo.h b/src/include/getaddrinfo.h
index ec82583c970..6393ccfeae0 100644
--- a/src/include/getaddrinfo.h
+++ b/src/include/getaddrinfo.h
@@ -15,17 +15,15 @@
*
* Copyright (c) 2003-2006, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/getaddrinfo.h,v 1.19 2006/03/05 15:58:53 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/getaddrinfo.h,v 1.20 2006/06/07 22:24:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef GETADDRINFO_H
#define GETADDRINFO_H
-#ifndef WIN32_CLIENT_ONLY
#include <sys/socket.h>
#include <netdb.h>
-#endif
/* Various macros that ought to be in <netdb.h>, but might not be */
@@ -42,7 +40,7 @@
#define EAI_MEMORY (-10)
#define EAI_SYSTEM (-11)
#else /* WIN32 */
-#if defined(WIN32_CLIENT_ONLY)
+#ifdef WIN32_ONLY_COMPILER
#define WSA_NOT_ENOUGH_MEMORY (WSAENOBUFS)
#define WSATYPE_NOT_FOUND (WSABASEERR+109)
#endif