aboutsummaryrefslogtreecommitdiffstats
path: root/src/fd_util.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-06 23:25:57 +0200
committerMax Kellermann <max@duempel.org>2013-08-06 23:32:21 +0200
commit47e16dbee3d43a8fac8e2337df442814ec6d036b (patch)
tree011c45b1d151425adaef1168fcf6ba7238d6e82a /src/fd_util.c
parent66f678023f6e18dde9679d0a69565d6a50d09ed4 (diff)
downloadmpd-47e16dbee3d43a8fac8e2337df442814ec6d036b.tar.gz
mpd-47e16dbee3d43a8fac8e2337df442814ec6d036b.tar.xz
mpd-47e16dbee3d43a8fac8e2337df442814ec6d036b.zip
configure.ac: add option --enable-eventfd
Remove the runtime check for eventfd(), hard-code the feature once it's been selected at compile time. The class WakeFD is splitted into EventFD and EventPipe, using WakeFD as a macro diversion.
Diffstat (limited to '')
-rw-r--r--src/fd_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fd_util.c b/src/fd_util.c
index ea29d6eaa..17976a5ee 100644
--- a/src/fd_util.c
+++ b/src/fd_util.c
@@ -49,7 +49,7 @@
#include <sys/inotify.h>
#endif
-#ifdef HAVE_EVENTFD
+#ifdef USE_EVENTFD
#include <sys/eventfd.h>
#endif
@@ -332,7 +332,7 @@ inotify_init_cloexec(void)
#endif
-#ifdef HAVE_EVENTFD
+#ifdef USE_EVENTFD
int
eventfd_cloexec_nonblock(unsigned initval, int flags)