summaryrefslogtreecommitdiff
path: root/package/libs
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-12-23 19:26:26 +0000
committerJohn Crispin <john@openwrt.org>2015-12-23 19:26:26 +0000
commitc75c8ab6a637831425f2bc0610231a1afc8168de (patch)
tree738adb74768d4d71eb9afa56b294477314a3c457 /package/libs
parent1a54162447284183f64bf79846e7a2e43af239f2 (diff)
downloadmtk-20170518-c75c8ab6a637831425f2bc0610231a1afc8168de.zip
mtk-20170518-c75c8ab6a637831425f2bc0610231a1afc8168de.tar.gz
mtk-20170518-c75c8ab6a637831425f2bc0610231a1afc8168de.tar.bz2
libnl: fix warning with poll.h include on musl
Warning is: #warning redirecting incorrect #include <sys/poll.h> to <poll. Not a big issue. But it can be annoying when building with -Werror set. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 48004
Diffstat (limited to 'package/libs')
-rw-r--r--package/libs/libnl/patches/001-fix-poll-h-include-warning-on-musl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/libs/libnl/patches/001-fix-poll-h-include-warning-on-musl.h b/package/libs/libnl/patches/001-fix-poll-h-include-warning-on-musl.h
new file mode 100644
index 0000000..ec9d4bc
--- /dev/null
+++ b/package/libs/libnl/patches/001-fix-poll-h-include-warning-on-musl.h
@@ -0,0 +1,13 @@
+diff --git a/include/netlink/netlink.h b/include/netlink/netlink.h
+index 5f68548..3bf3ed5 100644
+--- a/include/netlink/netlink.h
++++ b/include/netlink/netlink.h
+@@ -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>