xref: /OK3568_Linux_fs/buildroot/package/daq/0001-Fix-build-against-the-musl-C-library.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 42efa6d76a3b52f35e576a6b941a9afb5b3879e9 Mon Sep 17 00:00:00 2001
2From: Sergio Prado <sergio.prado@e-labworks.com>
3Date: Tue, 9 Jan 2018 21:39:27 -0200
4Subject: [PATCH] Fix build against the musl C library
5
6Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
7---
8 os-daq-modules/daq_ipfw.c | 2 +-
9 os-daq-modules/daq_ipq.c  | 2 +-
10 os-daq-modules/daq_nfq.c  | 2 +-
11 3 files changed, 3 insertions(+), 3 deletions(-)
12
13diff --git a/os-daq-modules/daq_ipfw.c b/os-daq-modules/daq_ipfw.c
14index 016beb06ad61..98f67717f646 100644
15--- a/os-daq-modules/daq_ipfw.c
16+++ b/os-daq-modules/daq_ipfw.c
17@@ -26,7 +26,7 @@
18
19 #include <sys/types.h>
20 #include <sys/time.h>
21-#include <sys/unistd.h>
22+#include <unistd.h>
23
24 #include <netinet/in.h>
25 #include <sys/socket.h>
26diff --git a/os-daq-modules/daq_ipq.c b/os-daq-modules/daq_ipq.c
27index 77ec6e9505e5..b15e5cf82af0 100644
28--- a/os-daq-modules/daq_ipq.c
29+++ b/os-daq-modules/daq_ipq.c
30@@ -27,7 +27,7 @@
31
32 #include <sys/types.h>
33 #include <sys/time.h>
34-#include <sys/unistd.h>
35+#include <unistd.h>
36
37 #include <netinet/ip.h>
38
39diff --git a/os-daq-modules/daq_nfq.c b/os-daq-modules/daq_nfq.c
40index 33021c0ec991..0df1e61c74c4 100644
41--- a/os-daq-modules/daq_nfq.c
42+++ b/os-daq-modules/daq_nfq.c
43@@ -27,7 +27,7 @@
44
45 #include <sys/types.h>
46 #include <sys/time.h>
47-#include <sys/unistd.h>
48+#include <unistd.h>
49
50 #include <netinet/ip.h>
51
52--
531.9.1
54
55