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-09 19:48:03 +0100 |
commit | bdd9bd8beaf49133cd62b27255897cdbd2b42b49 (patch) | |
tree | f073be1ff3e2c90dbac6ed76a71cf5bb33379d61 /meta/recipes-support/libdaemon/libdaemon | |
parent | 7d1599cf6a55d3624d2b90c1f55e14c4df73e570 (diff) | |
download | openembedded-core-bdd9bd8beaf49133cd62b27255897cdbd2b42b49.tar.gz |
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@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 @@ +musl complains +fatal error: sys/unistd.h: No such file or directory +and rightly so + +Signed-off-by: Khem Raj <raj.khem@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> |