[oe-commits] Khem Raj : libdaemon: Explicitly include unisttd.h instead of sys/unistd.h
git at git.openembedded.org
git at git.openembedded.org
Thu Apr 9 10:29:16 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: b988fda5b8891bd3a8ecc3e87baeeb22555c5e89
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b988fda5b8891bd3a8ecc3e87baeeb22555c5e89
Author: Khem Raj <raj.khem at gmail.com>
Date: Mon Apr 6 17:36:41 2015 +0000
libdaemon: Explicitly include unisttd.h instead of sys/unistd.h
Fixes build errors on musl
Change-Id: Ia00bdc9c0578c8d5e1249c9d433079d795e83cb2
Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
.../libdaemon/libdaemon/fix-includes.patch | 20 ++++++++++++++++++++
meta/recipes-support/libdaemon/libdaemon_0.14.bb | 4 +++-
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-support/libdaemon/libdaemon/fix-includes.patch b/meta/recipes-support/libdaemon/libdaemon/fix-includes.patch
new file mode 100644
index 0000000..1027ae8
--- /dev/null
+++ b/meta/recipes-support/libdaemon/libdaemon/fix-includes.patch
@@ -0,0 +1,20 @@
+musl complains
+fatal error: sys/unistd.h: No such file or directory
+and rightly so
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+Upstream-Status: Pending
+
+--- libdaemon-0.14.orig/examples/testd.c
++++ libdaemon-0.14/examples/testd.c
+@@ -21,9 +21,9 @@
+ #include <signal.h>
+ #include <errno.h>
+ #include <string.h>
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include <sys/unistd.h>
+ #include <sys/select.h>
+
+ #include <libdaemon/dfork.h>
diff --git a/meta/recipes-support/libdaemon/libdaemon_0.14.bb b/meta/recipes-support/libdaemon/libdaemon_0.14.bb
index e928781..070ee18 100644
--- a/meta/recipes-support/libdaemon/libdaemon_0.14.bb
+++ b/meta/recipes-support/libdaemon/libdaemon_0.14.bb
@@ -6,7 +6,9 @@ LICENSE = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \
file://libdaemon/daemon.h;beginline=9;endline=21;md5=bd9fbe57cd96d1a5848a8ba12d9a6bf4"
-SRC_URI = "http://0pointer.de/lennart/projects/libdaemon/libdaemon-${PV}.tar.gz"
+SRC_URI = "http://0pointer.de/lennart/projects/libdaemon/libdaemon-${PV}.tar.gz \
+ file://fix-includes.patch \
+ "
SRC_URI[md5sum] = "509dc27107c21bcd9fbf2f95f5669563"
SRC_URI[sha256sum] = "fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834"
More information about the Openembedded-commits
mailing list