Introducing the Big Tinc Lock.
[tinc] / src / net.h
index 68cca02..2be797d 100644 (file)
--- a/src/net.h
+++ b/src/net.h
@@ -21,6 +21,7 @@
 #ifndef __TINC_NET_H__
 #define __TINC_NET_H__
 
+#include "event.h"
 #include "ipv6.h"
 #include "cipher.h"
 #include "digest.h"
@@ -154,8 +155,8 @@ extern void load_all_subnets();
 
 #ifndef HAVE_MINGW
 #define closesocket(s) close(s)
-#else
-extern CRITICAL_SECTION mutex;
 #endif
 
+extern mutex_t mutex;
+
 #endif                                                 /* __TINC_NET_H__ */