summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libdaemon/libdaemon/fix-includes.patch
blob: 1027ae8e6cbfc715607cc596008fe6b147e7a097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
musl complains
fatal error: sys/unistd.h: No such file or directory
and rightly so

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Pending

--- libdaemon-0.14.orig/examples/testd.c
+++ libdaemon-0.14/examples/testd.c
@@ -21,9 +21,9 @@
 #include <signal.h>
 #include <errno.h>
 #include <string.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/time.h>
-#include <sys/unistd.h>
 #include <sys/select.h>
 
 #include <libdaemon/dfork.h>