Commit 14193ee8 authored by Jörg Krause's avatar Jörg Krause Committed by Peter Korsgaard
Browse files

package/libdaemon: add patch to fix build with the musl C library



Adds a patch to the package libdaemon which removes an error when building
libdaemon against the musl C library.

Signed-off-by: default avatarJörg Krause <jkrause@posteo.de>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent a2d7725e
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
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>