]> git.meshlink.io Git - meshlink/commitdiff
#include <winsock2.h> on Windows.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 25 Jun 2012 13:01:42 +0000 (15:01 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 25 Jun 2012 13:01:42 +0000 (15:01 +0200)
MinGW complained about it not being included.

have.h

diff --git a/have.h b/have.h
index 72af069884f8e1a0d077cbe8edbfd61618c45ee4..e00c7f7194f046f57d8f2d447893ead48417f319 100644 (file)
--- a/have.h
+++ b/have.h
@@ -41,6 +41,7 @@
 
 #ifdef HAVE_MINGW
 #include <w32api.h>
+#include <winsock2.h>
 #include <windows.h>
 #include <ws2tcpip.h>
 #endif