]> www.tinc-vpn.org Git - tinc/blobdiff - src/event.h
Use native Windows events for the event loop.
[tinc] / src / event.h
index bd91b7b9ac1c616f9f587581b2da6a9bf7a22f3e..bebb520d3518dc2ac88edb0e4709e9399d3fb5b3 100644 (file)
@@ -1,6 +1,6 @@
 /*
     event.h -- I/O, timeout and signal event handling
-    Copyright (C) 2012 Guus Sliepen <guus@tinc-vpn.org>
+    Copyright (C) 2012-2013 Guus Sliepen <guus@tinc-vpn.org>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -32,6 +32,9 @@ typedef void (*signal_cb_t)(void *data);
 typedef struct io_t {
        int fd;
        int flags;
+#ifdef HAVE_MINGW
+       WSAEVENT event;
+#endif
        io_cb_t cb;
        void *data;
        splay_node_t node;