diff options
author | Andreas Schneider <asn@samba.org> | 2014-10-01 12:51:56 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-10-01 14:06:33 +0200 |
commit | b6e69a39dd211626159865f1ece4989c7552a9ee (patch) | |
tree | 7bc498f8d857a2fb0d849156e97e842fd91e4560 /ConfigureChecks.cmake | |
parent | 362136b89adedbf112beb354e31b0e9b763db37f (diff) | |
download | socket_wrapper-b6e69a39dd211626159865f1ece4989c7552a9ee.tar.gz socket_wrapper-b6e69a39dd211626159865f1ece4989c7552a9ee.tar.xz socket_wrapper-b6e69a39dd211626159865f1ece4989c7552a9ee.zip |
swrap: Add support for eventfd with unsigned count variable.
The prototype in glibc 2.20.90 changed.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index fb73449..ea0a208 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -119,6 +119,14 @@ check_prototype_definition(ioctl "unistd.h;sys/ioctl.h" HAVE_IOCTL_INT) +if (HAVE_EVENTFD) + check_prototype_definition(eventfd + "int eventfd(unsigned int count, int flags)" + "-1" + "sys/eventfd.h" + HAVE_EVENTFD_UNSIGNED_INT) +endif (HAVE_EVENTFD) + # IPV6 check_c_source_compiles(" #include <stdlib.h> |