summaryrefslogtreecommitdiffstats
path: root/lib/socket_wrapper
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-10-02 07:25:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-10-02 09:35:11 +0200
commitafe2f47c0fd17c215857e800296de795d48c004d (patch)
tree992a1b75354af7c85a7d50e3fe9afd55e8b67ac6 /lib/socket_wrapper
parent539fa2c04f6220e72a63ab492fae298c86b00954 (diff)
downloadsamba-afe2f47c0fd17c215857e800296de795d48c004d.tar.gz
samba-afe2f47c0fd17c215857e800296de795d48c004d.tar.xz
samba-afe2f47c0fd17c215857e800296de795d48c004d.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 'lib/socket_wrapper')
-rw-r--r--lib/socket_wrapper/socket_wrapper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index 6a495b9502..d5c343d024 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -5024,7 +5024,11 @@ static int swrap_eventfd(int count, int flags)
return fd;
}
+#ifdef HAVE_EVENTFD_UNSIGNED_INT
+int eventfd(unsigned int count, int flags)
+#else
int eventfd(int count, int flags)
+#endif
{
return swrap_eventfd(count, flags);
}