Skip to contentSkip to conversation

package/libnl: add patch to fix build with the musl C library

PATCH New Jörg Krause 2 participants 2 messages Sep 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 ...nk-netlink-h-use-poll-h-instead-of-sys-poll-h.patch | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 package/libnl/libnl-0001-netlink-netlink-h-use-poll-h-instead-of-sys-poll-h.patch
package/libnl/libnl-0001-netlink-netlink-h-use-poll-h-instead-of-sys-poll-h.patch new file +18 -0
new file mode 100644
index 0000000..dd55cd4
@@ -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 <[email protected]>
+
+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>
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 package/libnl: add patch to fix build with the musl C library

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"J?rg" == J?rg Krause <[email protected]> writes:

Add a patch to the package libnl which removes an error when building libnl against the musl C library.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard