board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / sysklogd / 0002-Fix-improper-header-includes.patch
blob3518ef0270dbb4d82bbb078e10b29115d3ce84d1
1 From 7a043f619a91fbb998863c08e3e5e94a4747b11d Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Mon, 28 Nov 2016 23:07:36 +0100
4 Subject: [PATCH] Fix improper header includes
6 When building with the musl C library, a number of warnings indicate
7 that sysklogd is directly including headers that are considered internal
8 to the C library:
10 - Instead of including <sys/fcntl.h>, <fcntl.h> should be included.
12 - Instead of including <sys/signal.h>, <signal.h> should be included.
14 - Instead of includeing <sys/errno.h>, <errno.h> should be included.
16 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17 ---
18 klogd.c | 2 +-
19 ksym_mod.c | 2 +-
20 syslog.c | 2 +-
21 syslogd.c | 2 +-
22 4 files changed, 4 insertions(+), 4 deletions(-)
24 diff --git a/klogd.c b/klogd.c
25 index 6cc80ed..a173353 100644
26 --- a/klogd.c
27 +++ b/klogd.c
28 @@ -260,7 +260,7 @@
29 #include <unistd.h>
30 #include <signal.h>
31 #include <errno.h>
32 -#include <sys/fcntl.h>
33 +#include <fcntl.h>
34 #include <sys/stat.h>
35 #if !defined(__GLIBC__)
36 #include <linux/time.h>
37 diff --git a/ksym_mod.c b/ksym_mod.c
38 index 68cd6b6..2e69d65 100644
39 --- a/ksym_mod.c
40 +++ b/ksym_mod.c
41 @@ -113,7 +113,7 @@
42 #include <unistd.h>
43 #include <signal.h>
44 #include <errno.h>
45 -#include <sys/fcntl.h>
46 +#include <fcntl.h>
47 #include <sys/stat.h>
48 #include "module.h"
49 #if !defined(__GLIBC__)
50 diff --git a/syslog.c b/syslog.c
51 index bdb3ff2..f96b43c 100644
52 --- a/syslog.c
53 +++ b/syslog.c
54 @@ -55,7 +55,7 @@ static char sccsid[] = "@(#)syslog.c 5.28 (Berkeley) 6/27/90";
55 #include <sys/types.h>
56 #include <sys/socket.h>
57 #include <sys/file.h>
58 -#include <sys/signal.h>
59 +#include <signal.h>
60 #include <sys/syslog.h>
61 #if 0
62 #include "syslog.h"
63 diff --git a/syslogd.c b/syslogd.c
64 index ace96c8..b5e8054 100644
65 --- a/syslogd.c
66 +++ b/syslogd.c
67 @@ -521,7 +521,7 @@ static char sccsid[] = "@(#)syslogd.c 5.27 (Berkeley) 10/10/88";
68 #define SYSLOG_NAMES
69 #include <sys/syslog.h>
70 #include <sys/param.h>
71 -#include <sys/errno.h>
72 +#include <errno.h>
73 #include <sys/ioctl.h>
74 #include <sys/stat.h>
75 #include <sys/wait.h>
76 --
77 2.7.4