diff options
author | Robin Burchell <viroteck@viroteck.net> | 2012-03-30 09:45:15 -0700 |
---|---|---|
committer | Robin Burchell <viroteck@viroteck.net> | 2012-03-30 09:45:15 -0700 |
commit | e73e4be15485f545ff485d3d372b513dd28bf759 (patch) | |
tree | 2a045ae88a128899a073c7092e7a871843493cff /make | |
parent | cfac6a9562764dd1530ed39767630e26934c4685 (diff) | |
parent | 0ea875369c025338829d0bee4e71974709ac702e (diff) |
Merge pull request #21 from nenolod/insp20
configure: fix check for eventfd support.
Diffstat (limited to 'make')
-rw-r--r-- | make/check_eventfd.cpp | 7 |
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); } |