From 0ea875369c025338829d0bee4e71974709ac702e Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 29 Mar 2012 19:52:11 -0500 Subject: 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(). --- make/check_eventfd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'make') 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 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); } -- cgit v1.2.3