Add missing #include.
[tinc] / src / net.h
index d320c15..c9e2932 100644 (file)
--- a/src/net.h
+++ b/src/net.h
@@ -23,6 +23,8 @@
 #ifndef __TINC_NET_H__
 #define __TINC_NET_H__
 
+#include <event.h>
+
 #include "ipv6.h"
 #include "cipher.h"
 #include "digest.h"
@@ -131,7 +133,7 @@ extern int setup_vpn_in_socket(const sockaddr_t *);
 extern void send_packet(const struct node_t *, vpn_packet_t *);
 extern void receive_tcppacket(struct connection_t *, char *, int);
 extern void broadcast_packet(const struct node_t *, vpn_packet_t *);
-extern bool setup_network_connections(void);
+extern bool setup_network(void);
 extern void setup_outgoing_connection(struct outgoing_t *);
 extern void try_outgoing_connections(void);
 extern void close_network_connections(void);
@@ -149,6 +151,8 @@ extern int reload_configuration(void);
 
 #ifndef HAVE_MINGW
 #define closesocket(s) close(s)
+#else
+extern CRITICAL_SECTION mutex;
 #endif
 
 #endif                                                 /* __TINC_NET_H__ */