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
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>
22 4 files changed, 4 insertions(+), 4 deletions(-)
24 diff --git a/klogd.c b/klogd.c
25 index 6cc80ed..a173353 100644
32 -#include <sys/fcntl.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
45 -#include <sys/fcntl.h>
49 #if !defined(__GLIBC__)
50 diff --git a/syslog.c b/syslog.c
51 index bdb3ff2..f96b43c 100644
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>
58 -#include <sys/signal.h>
60 #include <sys/syslog.h>
63 diff --git a/syslogd.c b/syslogd.c
64 index ace96c8..b5e8054 100644
67 @@ -521,7 +521,7 @@ static char sccsid[] = "@(#)syslogd.c 5.27 (Berkeley) 10/10/88";
69 #include <sys/syslog.h>
70 #include <sys/param.h>
71 -#include <sys/errno.h>
73 #include <sys/ioctl.h>