From 18dceee5885c536eaa8f0c79df1e77b44e5f6514 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 26 Nov 2014 10:18:34 +0100 Subject: [PATCH] socket_wrapper: Add missing prototype check for eventfd. 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 Reviewed-by: Stefan Metzmacher (cherry picked from commit 78e8bafb322ec69c5ff4b32a5e1c5679c9dea6bf) --- lib/socket_wrapper/wscript | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/socket_wrapper/wscript b/lib/socket_wrapper/wscript index de5bedd..4a18a47 100644 --- a/lib/socket_wrapper/wscript +++ b/lib/socket_wrapper/wscript @@ -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' -- 2.2.0