summaryrefslogtreecommitdiff
path: root/make/check_eventfd.cpp
diff options
context:
space:
mode:
authorRobin Burchell <viroteck@viroteck.net>2012-03-30 09:45:15 -0700
committerRobin Burchell <viroteck@viroteck.net>2012-03-30 09:45:15 -0700
commite73e4be15485f545ff485d3d372b513dd28bf759 (patch)
tree2a045ae88a128899a073c7092e7a871843493cff /make/check_eventfd.cpp
parentcfac6a9562764dd1530ed39767630e26934c4685 (diff)
parent0ea875369c025338829d0bee4e71974709ac702e (diff)
Merge pull request #21 from nenolod/insp20
configure: fix check for eventfd support.
Diffstat (limited to 'make/check_eventfd.cpp')
-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);
}