aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJuanJo Ciarlante <juanjosec@gmail.com>2011-03-27 23:41:22 +0200
committerJuanJo Ciarlante <juanjosec@gmail.com>2011-03-27 23:41:22 +0200
commit6dbf82a96253add5ed5f6c923080f4de4366c874 (patch)
treea76c1a9a488b4aad17e796a59401515cb129b5e8 /acinclude.m4
parent* ipv6-0.4.15b: rebase over openvpn-testing-master (diff)
downloadopenvpn-6dbf82a96253add5ed5f6c923080f4de4366c874.tar.xz
* ipv6-0.4.16: fix mingw32 build
Diffstat (limited to '')
-rw-r--r--acinclude.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 185907f..acfc01d 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -123,5 +123,9 @@ AC_DEFUN([TYPE_SOCKLEN_T],
AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv,
[type to use in place of socklen_t if not defined])],
[#include <sys/types.h>
-#include <sys/socket.h>])
+#ifdef WIN32
+#include <ws2tcpip.h>
+#else
+#include <sys/socket.h>
+#endif])
])