libevent: -Werror=implicit-function-declaration
authorFredrik Fornwall <fredrik@fornwall.net>
Thu, 6 Jul 2017 23:05:34 +0000 (01:05 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Thu, 6 Jul 2017 23:05:34 +0000 (01:05 +0200)
packages/libevent/evutil.c.patch [new file with mode: 0644]

diff --git a/packages/libevent/evutil.c.patch b/packages/libevent/evutil.c.patch
new file mode 100644 (file)
index 0000000..af0c9e5
--- /dev/null
@@ -0,0 +1,11 @@
+diff -u -r ../libevent-release-2.1.8-stable/evutil.c ./evutil.c
+--- ../libevent-release-2.1.8-stable/evutil.c  2017-01-26 00:37:15.000000000 +0100
++++ ./evutil.c 2017-07-07 01:04:14.746540880 +0200
+@@ -47,6 +47,7 @@
+ #include <sys/socket.h>
+ #endif
+ #ifdef EVENT__HAVE_UNISTD_H
++#define __USE_GNU 1 /* For pipe2(). */
+ #include <unistd.h>
+ #endif
+ #ifdef EVENT__HAVE_FCNTL_H