From 0fb5a016497d3061a6edf40752c06127f3abb796 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 20 Apr 2012 07:42:10 +0200 Subject: Select polling mechanisms at one place This patch provides a single place for selecting polling mechanisms (polling.hpp). Up to now the selection was spread among the build system and several source files. Signed-off-by: Martin Sustrik --- src/kqueue.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kqueue.hpp') diff --git a/src/kqueue.hpp b/src/kqueue.hpp index 3aaa10b..862458b 100644 --- a/src/kqueue.hpp +++ b/src/kqueue.hpp @@ -22,8 +22,9 @@ #ifndef __XS_KQUEUE_HPP_INCLUDED__ #define __XS_KQUEUE_HPP_INCLUDED__ -#include "platform.hpp" -#if defined XS_HAVE_KQUEUE +#include "polling.hpp" + +#if defined XS_USE_ASYNC_KQUEUE #include -- cgit v1.2.3