Don't try to mkdir(CONFDIR) on Windows when there is a registry key for tinc.
[tinc] / have.h
diff --git a/have.h b/have.h
index de00910..d47f204 100644 (file)
--- a/have.h
+++ b/have.h
@@ -42,6 +42,7 @@
 
 #ifdef HAVE_MINGW
 #include <w32api.h>
+#include <winsock2.h>
 #include <windows.h>
 #include <ws2tcpip.h>
 #endif
 #include <inttypes.h>
 #endif
 
-#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
-
 /* Include system specific headers */
 
 #ifdef HAVE_SYSLOG_H