socket_wrapper: Add missing prototype check for eventfd.
authorAndreas Schneider <asn@samba.org>
Wed, 26 Nov 2014 09:18:34 +0000 (10:18 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 8 Dec 2014 13:32:10 +0000 (14:32 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10965

Newer glibc versions use and unsinged integer for the count instead of
an integer.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/socket_wrapper/wscript

index 279f57793ccc5851d1d97c087bf8da7abbe6c4bf..91d23d150b1d073e131f3bfc1ade5d037505754c 100644 (file)
@@ -88,6 +88,11 @@ def configure(conf):
                                'int ioctl(int s, int r, ...)',
                                define='HAVE_IOCTL_INT', headers='unistd.h sys/ioctl.h')
 
+        if conf.CONFIG_SET("HAVE_EVENTFD"):
+            conf.CHECK_C_PROTOTYPE('eventfd',
+                                   'int eventfd(unsigned int count, int flags)',
+                                   define='HAVE_EVENTFD_UNSIGNED_INT', headers='sys/eventfd.h')
+
         # Create full path to socket_wrapper
         srcdir = os.path.realpath(conf.srcdir)
         libsocket_wrapper_so_path = srcdir + '/bin/default/lib/socket_wrapper/libsocket-wrapper.so'