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 /meta/recipes-support/libdaemon/libdaemon | |
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>
Diffstat (limited to 'meta/recipes-support/libdaemon/libdaemon')
-rw-r--r-- | meta/recipes-support/libdaemon/libdaemon/fix-includes.patch | 20 |
1 files changed, 20 insertions, 0 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> | ||