aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2010-11-11 09:11:41 +0100
committerIngela Anderton Andin <[email protected]>2010-11-12 11:47:39 +0100
commitfe884c86032a1c638f95a6f4d3aad039dcf5503e (patch)
treec6ae2081b56bd655e9b311aa800293beadc94ffb /lib/odbc
parent626d906d3ad46d46a6c90cf3239fd60bad5dc318 (diff)
downloadotp-fe884c86032a1c638f95a6f4d3aad039dcf5503e.tar.gz
otp-fe884c86032a1c638f95a6f4d3aad039dcf5503e.tar.bz2
otp-fe884c86032a1c638f95a6f4d3aad039dcf5503e.zip
Added needed include file ws2tcpip.h for windows.
Diffstat (limited to 'lib/odbc')
-rw-r--r--lib/odbc/c_src/odbcserver.c2
-rw-r--r--lib/odbc/configure.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/odbc/c_src/odbcserver.c b/lib/odbc/c_src/odbcserver.c
index 84b9a99192..077d78bfe5 100644
--- a/lib/odbc/c_src/odbcserver.c
+++ b/lib/odbc/c_src/odbcserver.c
@@ -108,8 +108,8 @@
#if defined WIN32
#include <winsock2.h>
-/* #include <ws2tcpip.h > When we can support a newer c-compiler*/
#include <windows.h>
+#include <ws2tcpip.h >
#include <fcntl.h>
#include <sql.h>
#include <sqlext.h>
diff --git a/lib/odbc/configure.in b/lib/odbc/configure.in
index c16d4f3880..2369e16813 100644
--- a/lib/odbc/configure.in
+++ b/lib/odbc/configure.in
@@ -126,7 +126,7 @@ AC_TYPE_SIZE_T
AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_addr], [], [],
[#if HAVE_WINSOCK2_H
#include <winsock2.h>
- #include <windows.h>
+ #include <ws2tcpip.h>
#else
#include <netinet/in.h>
#endif])