diff options
| author | Khem Raj <raj.khem@gmail.com> | 2015-04-06 17:36:41 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-10 18:10:26 +0100 |
| commit | 933967fc9f10afb2c3cd789ba4ec3510e81cbdab (patch) | |
| tree | aaa999840b142b3d74520fcc64c63c09ab5fd325 | |
| parent | 16d8c895a4e1995c00e558a79a046a5eab721d06 (diff) | |
| download | poky-933967fc9f10afb2c3cd789ba4ec3510e81cbdab.tar.gz | |
libdaemon: Explicitly include unisttd.h instead of sys/unistd.h
Fixes build errors on musl
Change-Id: Ia00bdc9c0578c8d5e1249c9d433079d795e83cb2
(From OE-Core rev: bdd9bd8beaf49133cd62b27255897cdbd2b42b49)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/libdaemon/libdaemon/fix-includes.patch | 20 | ||||
| -rw-r--r-- | meta/recipes-support/libdaemon/libdaemon_0.14.bb | 4 |
2 files changed, 23 insertions, 1 deletions
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 0000000000..1027ae8e6c --- /dev/null +++ b/meta/recipes-support/libdaemon/libdaemon/fix-includes.patch | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | musl complains | ||
| 2 | fatal error: sys/unistd.h: No such file or directory | ||
| 3 | and rightly so | ||
| 4 | |||
| 5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | --- libdaemon-0.14.orig/examples/testd.c | ||
| 9 | +++ libdaemon-0.14/examples/testd.c | ||
| 10 | @@ -21,9 +21,9 @@ | ||
| 11 | #include <signal.h> | ||
| 12 | #include <errno.h> | ||
| 13 | #include <string.h> | ||
| 14 | +#include <unistd.h> | ||
| 15 | #include <sys/types.h> | ||
| 16 | #include <sys/time.h> | ||
| 17 | -#include <sys/unistd.h> | ||
| 18 | #include <sys/select.h> | ||
| 19 | |||
| 20 | #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 e928781a4d..070ee1890e 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+" | |||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
| 7 | file://libdaemon/daemon.h;beginline=9;endline=21;md5=bd9fbe57cd96d1a5848a8ba12d9a6bf4" | 7 | file://libdaemon/daemon.h;beginline=9;endline=21;md5=bd9fbe57cd96d1a5848a8ba12d9a6bf4" |
| 8 | 8 | ||
| 9 | SRC_URI = "http://0pointer.de/lennart/projects/libdaemon/libdaemon-${PV}.tar.gz" | 9 | SRC_URI = "http://0pointer.de/lennart/projects/libdaemon/libdaemon-${PV}.tar.gz \ |
| 10 | file://fix-includes.patch \ | ||
| 11 | " | ||
| 10 | 12 | ||
| 11 | SRC_URI[md5sum] = "509dc27107c21bcd9fbf2f95f5669563" | 13 | SRC_URI[md5sum] = "509dc27107c21bcd9fbf2f95f5669563" |
| 12 | SRC_URI[sha256sum] = "fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834" | 14 | SRC_URI[sha256sum] = "fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834" |
