summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2012-03-29 19:52:11 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2012-03-29 19:52:11 -0500
commit0ea875369c025338829d0bee4e71974709ac702e (patch)
tree2a045ae88a128899a073c7092e7a871843493cff
parentcfac6a9562764dd1530ed39767630e26934c4685 (diff)
configure: fix check for eventfd support.
InspIRCd uses eventfd_read() which was not introduced until after eventfd was first added to glibc. uClibc, for example, still does not have support for eventfd_read().
-rw-r--r--make/check_eventfd.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/make/check_eventfd.cpp b/make/check_eventfd.cpp
index 5fc72ee3b..199cbcd31 100644
--- a/make/check_eventfd.cpp
+++ b/make/check_eventfd.cpp
@@ -1,6 +1,11 @@
#include <sys/eventfd.h>
int main() {
- int fd = eventfd(0, EFD_NONBLOCK);
+ eventfd_t efd_data;
+ int fd;
+
+ fd = eventfd(0, EFD_NONBLOCK);
+ eventfd_read(fd, &efd_data);
+
return (fd < 0);
}