[OpenWrt-Devel] [PATCH] libnl: fix warning with poll.h include on musl

Alexandru Ardelean ardeleanalex at gmail.com
Fri Dec 18 05:37:05 EST 2015


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 at gmail.com>
---
 .../libnl/patches/001-fix-poll-h-include-warning-on-musl.h  | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 package/libs/libnl/patches/001-fix-poll-h-include-warning-on-musl.h

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>
-- 
2.1.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list