diff mbox

[v2,1/1] package/libdaemon: add patch to fix build with the musl C library

Message ID 1409429739-2998-1-git-send-email-jkrause@posteo.de
State Accepted
Commit 14193ee8740fc1663ca090ecb0ce9ae195b60be0
Headers show

Commit Message

Jörg Krause Aug. 30, 2014, 8:15 p.m. UTC
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>
---
Changes v1 -> v2:
  - Add description to the top of the patch file
  - Add signed-off-by line to the patch file
  - Prefix the patch file name with libdaemon
---
 ...0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 package/libdaemon/libdaemon-0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch

Comments

Peter Korsgaard Aug. 30, 2014, 9:31 p.m. UTC | #1
>>>>> "Jörg" == Jörg Krause <jkrause@posteo.de> writes:

 > 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>
 > ---
 > Changes v1 -> v2:
 >   - Add description to the top of the patch file
 >   - Add signed-off-by line to the patch file
 >   - Prefix the patch file name with libdaemon

Committed, thanks. Don't forget to send the patch upstream.
diff mbox

Patch

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
index 0000000..c8f4270
--- /dev/null
+++ b/package/libdaemon/libdaemon-0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch
@@ -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>