diff mbox series

[oe,meta-oe,06/10] libndp: Include sys/select.h in ndptool.c

Message ID 20170322184533.6501-6-raj.khem@gmail.com
State Accepted
Commit 9cd2b3fe97b2b041d293941207c54909f0206f3d
Headers show
Series [oe,meta-gnome,01/10] abiword: Mark gconv dependencies only for glibc | expand

Commit Message

Khem Raj March 22, 2017, 6:45 p.m. UTC
Fixes build with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 ...-include-sys-select.h-for-fd_-definitions.patch | 25 ++++++++++++++++++++++
 meta-oe/recipes-connectivity/libndp/libndp_1.6.bb  |  4 +++-
 2 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-connectivity/libndp/libndp/0001-include-sys-select.h-for-fd_-definitions.patch

-- 
2.12.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Comments

Javier Viguera July 10, 2017, 9:20 a.m. UTC | #1
This is also failing in Yocto 2.2 Morty.

And the fix is just a cherry-pick away:

git cherry-pick 9cd2b3fe97b2b041d293941207c54909f0206f3d

Could someone with the proper rights, do the backport to Morty?

-- 
Thanks,

Javier Viguera
-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-connectivity/libndp/libndp/0001-include-sys-select.h-for-fd_-definitions.patch b/meta-oe/recipes-connectivity/libndp/libndp/0001-include-sys-select.h-for-fd_-definitions.patch
new file mode 100644
index 000000000..bafd916d2
--- /dev/null
+++ b/meta-oe/recipes-connectivity/libndp/libndp/0001-include-sys-select.h-for-fd_-definitions.patch
@@ -0,0 +1,25 @@ 
+From 33150de2d77ffb645da1a043933b12ddc0143cea Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Tue, 21 Mar 2017 18:59:03 -0700
+Subject: [PATCH] include sys/select.h for fd_* definitions
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ utils/ndptool.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/utils/ndptool.c b/utils/ndptool.c
+index 1d96f4c..0fd4c4d 100644
+--- a/utils/ndptool.c
++++ b/utils/ndptool.c
+@@ -23,6 +23,7 @@
+ #include <string.h>
+ #include <signal.h>
+ #include <getopt.h>
++#include <sys/select.h>
+ #include <net/if.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+-- 
+2.12.0
+
diff --git a/meta-oe/recipes-connectivity/libndp/libndp_1.6.bb b/meta-oe/recipes-connectivity/libndp/libndp_1.6.bb
index a35dff8b7..e06ff7f99 100644
--- a/meta-oe/recipes-connectivity/libndp/libndp_1.6.bb
+++ b/meta-oe/recipes-connectivity/libndp/libndp_1.6.bb
@@ -3,7 +3,9 @@  SUMMARY = "Library for IPv6 Neighbor Discovery Protocol"
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
-SRC_URI = "http://libndp.org/files/${BPN}-${PV}.tar.gz"
+SRC_URI = "http://libndp.org/files/${BPN}-${PV}.tar.gz \
+           file://0001-include-sys-select.h-for-fd_-definitions.patch \
+           "
 SRC_URI[md5sum] = "1e54d26bcb4a4110bc3f90c5dd04f1a7"
 SRC_URI[sha256sum] = "0c7dfa84e013bd5e569ef2c6292a6f72cfaf14f4ff77a77425e52edc33ffac0e"