Replace MinGW with Windows to avoid ambiguities
[tinc] / src / net.h
index 261d9c3..1765b1c 100644 (file)
--- a/src/net.h
+++ b/src/net.h
@@ -215,7 +215,7 @@ extern void load_all_nodes(void);
 extern void try_tx(struct node_t *n, bool mtu);
 extern void tarpit(int fd);
 
-#ifndef HAVE_MINGW
+#ifndef HAVE_WINDOWS
 #define closesocket(s) close(s)
 #endif