#include <winsock2.h> on Windows.
[tinc] / have.h
diff --git a/have.h b/have.h
index 72af069..e00c7f7 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