]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/libdaemon: add patch to fix build with the musl C library
authorJörg Krause <jkrause@posteo.de>
Sat, 30 Aug 2014 20:15:39 +0000 (22:15 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 30 Aug 2014 21:30:49 +0000 (23:30 +0200)
Adds a patch to the package libdaemon which removes an error when building
libdaemon against the musl C library.

Signed-off-by: Jörg Krause <jkrause@posteo.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libdaemon/libdaemon-0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch [new file with mode: 0644]

diff --git a/package/libdaemon/libdaemon-0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch b/package/libdaemon/libdaemon-0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch
new file mode 100644 (file)
index 0000000..c8f4270
--- /dev/null
@@ -0,0 +1,16 @@
+examples/testd.c: As the C POSIX library recommends include the <unistd.h>
+instead of <sys/unistd.h>. This removes an error when building libdaemon
+against the musl C library.
+
+Signed-off-by: Jörg Krause <jkrause@posteo.de>
+--- libdaemon-0.14.orig/examples/testd.c       2014-08-30 00:27:08.359832977 +0200
++++ libdaemon-0.14/examples/testd.c    2014-08-30 00:27:25.439832670 +0200
+@@ -23,7 +23,7 @@
+ #include <string.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+ #include <sys/select.h>
+ #include <libdaemon/dfork.h>