Commit 661d059b authored by Dominik Charousset's avatar Dominik Charousset

allow users to disable epoll implementation on Linux by defining CPPA_POLL_IMPL

parent 89c1f5d5
...@@ -73,12 +73,12 @@ ...@@ -73,12 +73,12 @@
#define DEBUG(unused) ((void) 0) #define DEBUG(unused) ((void) 0)
#endif #endif
#ifdef CPPA_LINUX // use epoll event-loop implementation on Linux if not explicitly overriden
// use epoll event-loop implementation on Linux // by using CPPA_POLL_IMPL, use (default) poll implementation otherwise
#if defined(CPPA_LINUX) && !defined(CPPA_POLL_IMPL)
# define CPPA_EPOLL_IMPL # define CPPA_EPOLL_IMPL
# include <sys/epoll.h> # include <sys/epoll.h>
#else // #ifdef CPPA_LINUX #else
// use poll otherwise
# define CPPA_POLL_IMPL # define CPPA_POLL_IMPL
# include <poll.h> # include <poll.h>
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment