diff options
-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" |