Fix detection of rejected SOCKS5 proxy requests.
[tinc] / have.h
diff --git a/have.h b/have.h
index 073fbaa..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
 #include <sys/time.h>
 #endif
 
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif