diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-04-20 07:42:10 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-04-21 07:30:23 +0200 |
commit | 0fb5a016497d3061a6edf40752c06127f3abb796 (patch) | |
tree | 6abe36205647f5b8c134954f4d22a0c3c3bc98b1 /src/devpoll.cpp | |
parent | 0a12aa09b65c67033b5021057dd04fde0a3cabb5 (diff) |
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 <sustrik@250bpm.com>
Diffstat (limited to 'src/devpoll.cpp')
-rw-r--r-- | src/devpoll.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devpoll.cpp b/src/devpoll.cpp index 76943f0..2fbd1c1 100644 --- a/src/devpoll.cpp +++ b/src/devpoll.cpp @@ -21,7 +21,7 @@ #include "devpoll.hpp" -#if defined XS_HAVE_DEVPOLL +#if defined XS_USE_ASYNC_DEVPOLL #include <sys/devpoll.h> #include <sys/time.h> @@ -33,6 +33,7 @@ #include <limits.h> #include <algorithm> +#include "platform.hpp" #include "devpoll.hpp" #include "err.hpp" #include "config.hpp" |