swrap: Add support for eventfd with unsigned count variable.
authorAndreas Schneider <asn@samba.org>
Thu, 2 Oct 2014 05:25:32 +0000 (07:25 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 2 Oct 2014 07:35:11 +0000 (09:35 +0200)
The prototype in glibc 2.20.90 changed.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/socket_wrapper/socket_wrapper.c

index 6a495b9..d5c343d 100644 (file)
@@ -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);
 }