summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-21 00:21:32 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-21 00:35:15 +0100
commitb72908548dc841de65dc9288a96c1abe648acc46 (patch)
tree860fe7bc4f54ff89d36c3f3e5b0f0c6622bc6240 /src
parentb569240a55a0df3a78d3cb3e1e673e9347e531c0 (diff)
downloadbiboumi-b72908548dc841de65dc9288a96c1abe648acc46.tar.gz
biboumi-b72908548dc841de65dc9288a96c1abe648acc46.tar.bz2
biboumi-b72908548dc841de65dc9288a96c1abe648acc46.tar.xz
biboumi-b72908548dc841de65dc9288a96c1abe648acc46.zip
Let the user choose the poller to use through cmake POLLER option
Use ccmake, or cmake -i, or cmake -DPOLLER=EPOLL, for example
Diffstat (limited to 'src')
-rw-r--r--src/network/poller.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/poller.hpp b/src/network/poller.hpp
index e6ce7f2..fe52fda 100644
--- a/src/network/poller.hpp
+++ b/src/network/poller.hpp
@@ -9,11 +9,9 @@
#define POLL 1
#define EPOLL 2
#define KQUEUE 3
-
#include <config.h>
#ifndef POLLER
- // Default standard poller
- #define POLLER EPOLL
+ #define POLLER POLL
#endif
#if POLLER == POLL
@@ -21,6 +19,8 @@
#define MAX_POLL_FD_NUMBER 4096
#elif POLLER == EPOLL
#include <sys/epoll.h>
+#else
+ #error Invalid POLLER value
#endif
/**