From 636d10994156b8a799136207c7c65354a9a71dff 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 279f57793cc..91d23d150b1 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.11.4.GIT