summaryrefslogtreecommitdiff
path: root/include/socketengines
diff options
context:
space:
mode:
Diffstat (limited to 'include/socketengines')
-rw-r--r--include/socketengines/socketengine_poll.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/socketengines/socketengine_poll.h b/include/socketengines/socketengine_poll.h
index 4669ecfba..7c8a984ec 100644
--- a/include/socketengines/socketengine_poll.h
+++ b/include/socketengines/socketengine_poll.h
@@ -20,11 +20,18 @@
#include "inspircd_config.h"
#include "inspircd.h"
#include "socketengine.h"
-#ifndef __USE_XOPEN
- #define __USE_XOPEN /* fuck every fucking OS ever made. needed by poll.h to work.*/
+
+#ifndef WINDOWS
+ #ifndef __USE_XOPEN
+ #define __USE_XOPEN /* fuck every fucking OS ever made. needed by poll.h to work.*/
+ #endif
+ #include <poll.h>
+ #include <sys/poll.h>
+#else
+ /* *grumble* */
+ #define struct pollfd WSAPOLLFD
+ #define poll WSAPoll
#endif
-#include <poll.h>
-#include <sys/poll.h>
class InspIRCd;