From 4fa8511c80614427f70b62a5c74e0cbada7bbe21 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 11 Sep 2008 13:17:51 +0000 Subject: Experimental WSAPoll (thanks for not just using poll(), guys) support for Windows. Untested, uncompiled. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10516 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socketengines/socketengine_poll.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'include/socketengines') 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 + #include +#else + /* *grumble* */ + #define struct pollfd WSAPOLLFD + #define poll WSAPoll #endif -#include -#include class InspIRCd; -- cgit v1.2.3