X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet.h;h=06c0504c0632eb55aef28cfc8691a246e1f5e793;hb=f605ec47bed26362e24ffacf71c7ae5aeed3c230;hp=8ab33615c7e1a9bbc9334072be947b2e07a37fb4;hpb=83263b74460656ba557fd9bb84dc27258549e9cd;p=tinc diff --git a/src/net.h b/src/net.h index 8ab33615..06c0504c 100644 --- a/src/net.h +++ b/src/net.h @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net.h,v 1.9.4.67 2003/07/24 12:08:15 guus Exp $ + $Id: net.h,v 1.9.4.69 2003/08/02 20:50:38 guus Exp $ */ #ifndef __TINC_NET_H__ @@ -135,9 +135,13 @@ extern bool setup_network_connections(void); extern void setup_outgoing_connection(struct outgoing_t *); extern void try_outgoing_connections(void); extern void close_network_connections(void); -extern void main_loop(void); +extern int main_loop(void); extern void terminate_connection(struct connection_t *, bool); extern void flush_queue(struct node_t *); extern bool read_rsa_public_key(struct connection_t *); +#ifndef HAVE_MINGW +#define closesocket(s) close(s) +#endif + #endif /* __TINC_NET_H__ */