diff options
author | Andreas Schneider <asn@samba.org> | 2014-10-02 07:25:32 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-10-02 09:35:11 +0200 |
commit | afe2f47c0fd17c215857e800296de795d48c004d (patch) | |
tree | 992a1b75354af7c85a7d50e3fe9afd55e8b67ac6 /lib/socket_wrapper | |
parent | 539fa2c04f6220e72a63ab492fae298c86b00954 (diff) | |
download | samba-afe2f47c0fd17c215857e800296de795d48c004d.tar.gz |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index 6a495b95029..d5c343d024d 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); } |