summaryrefslogtreecommitdiff
path: root/package/libnl
diff options
context:
space:
mode:
authorJörg Krause <jkrause@posteo.de>2014-09-01 12:29:08 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-09-01 13:20:20 +0200
commit4f6e8e5992ed434295584501f99924a1f6706ad4 (patch)
tree59ce243901b0eb587aad8021112b6e20259ab051 /package/libnl
parentc86439678bc0db90ef5cbb59ada599a741ffffef (diff)
package/libnl: add patch to fix build with the musl C library
Add a patch to the package libnl which removes an error when building libnl against the musl C library. Signed-off-by: Jörg Krause <jkrause@posteo.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libnl')
-rw-r--r--package/libnl/libnl-0001-netlink-netlink-h-use-poll-h-instead-of-sys-poll-h.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/libnl/libnl-0001-netlink-netlink-h-use-poll-h-instead-of-sys-poll-h.patch b/package/libnl/libnl-0001-netlink-netlink-h-use-poll-h-instead-of-sys-poll-h.patch
new file mode 100644
index 000000000..dd55cd463
--- /dev/null
+++ b/package/libnl/libnl-0001-netlink-netlink-h-use-poll-h-instead-of-sys-poll-h.patch
@@ -0,0 +1,18 @@
+netlink/netlink.h: As the poll() man page recommends include the <poll.h>
+instead of <sys/poll.h>. This removes an error when building libdl against
+the musl C library.
+
+Signed-off-by: Jörg Krause <jkrause@posteo.de>
+
+diff -purN libnl-3.2.25.orig/include/netlink/netlink.h libnl-3.2.25/include/netlink/netlink.h
+--- libnl-3.2.25.orig/include/netlink/netlink.h 2014-09-01 11:42:37.254724124 +0200
++++ libnl-3.2.25/include/netlink/netlink.h 2014-09-01 11:42:58.254724255 +0200
+@@ -16,7 +16,7 @@
+ #include <stdint.h>
+ #include <string.h>
+ #include <stdlib.h>
+-#include <sys/poll.h>
++#include <poll.h>
+ #include <sys/socket.h>
+ #include <sys/types.h>
+ #include <sys/time.h>