]> tinc-vpn.org Git - tinc/blobdiff - src/net.h
Ensure past_request_event is initialized and registered properly.
[tinc] / src / net.h
index 68cca02ee08704c7344a32f8a579a00ce4dd9a19..d39dd93f4bc8bd91cd190d3c82b1d53ff885a33c 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,9 @@ extern void load_all_subnets();
 
 #ifndef HAVE_MINGW
 #define closesocket(s) close(s)
-#else
-extern CRITICAL_SECTION mutex;
 #endif
 
+extern mutex_t mutex;
+extern bool running;
+
 #endif                                                 /* __TINC_NET_H__ */