libdaemon: unbreak musl build; patch from a forked buildroot repo.

This commit is contained in:
Juan RP 2015-04-19 12:07:11 +02:00
parent f8d08edd2d
commit a5ba00f47f
2 changed files with 17 additions and 1 deletions

View file

@ -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>
--- examples/testd.c 2014-08-30 00:27:08.359832977 +0200
+++ 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>

View file

@ -1,7 +1,7 @@
# Template file for 'libdaemon'
pkgname=libdaemon
version=0.14
revision=7
revision=8
build_style=gnu-configure
configure_args="--disable-static --disable-lynx"
short_desc="Lightweight C library that eases the writing of UNIX daemons"