projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing #include.
[tinc]
/
have.h
diff --git
a/have.h
b/have.h
index
e0652a9
..
43a9147
100644
(file)
--- a/
have.h
+++ b/
have.h
@@
-31,6
+31,17
@@
#include <fcntl.h>
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
+#ifdef HAVE_MINGW
+#ifdef WITH_WINDOWS2000
+#define WINVER Windows2000
+#else
+#define WINVER WindowsXP
+#endif
+#include <w32api.h>
+#include <windows.h>
+#include <ws2tcpip.h>
+#endif
+
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#endif
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#endif
@@
-164,13
+175,4
@@
#include <netinet/if_ether.h>
#endif
#include <netinet/if_ether.h>
#endif
-#ifdef HAVE_MINGW
-#include <windows.h>
-#include <winsock2.h>
-#endif
-
-#ifdef HAVE_LIBEVENT
-#include <event.h>
-#endif
-
#endif /* __TINC_SYSTEM_H__ */
#endif /* __TINC_SYSTEM_H__ */