diff options
author | Andreas Schneider <asn@samba.org> | 2014-11-26 10:18:34 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-12-08 14:32:10 +0100 |
commit | 78e8bafb322ec69c5ff4b32a5e1c5679c9dea6bf (patch) | |
tree | 11927bb4cb1faa14fee00ad21def7b5dea549dc6 /lib/socket_wrapper | |
parent | 29732b0d427472041bf3a586f3eeb281ccd408d5 (diff) | |
download | samba-78e8bafb322ec69c5ff4b32a5e1c5679c9dea6bf.tar.gz |
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 <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/socket_wrapper')
-rw-r--r-- | lib/socket_wrapper/wscript | 5 |
1 files changed, 5 insertions, 0 deletions
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' |