Message ID | 1409352429-14773-1-git-send-email-jkrause@posteo.de |
---|---|
State | Changes Requested |
Headers | show |
>>>>> "Jörg" == Jörg Krause <jkrause@posteo.de> writes: > 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> Please also: - Add this description to the top of the patch file - Add your signed-off-by line - Send patch upstream - Prefix the file name with libdaemon See http://nightly.buildroot.org/manual.html#patch-policy for details, thanks.
diff --git a/package/libdaemon/0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch b/package/libdaemon/0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch new file mode 100644 index 0000000..00516f5 --- /dev/null +++ b/package/libdaemon/0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch @@ -0,0 +1,11 @@ +--- 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>
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> --- .../0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/libdaemon/0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch