pkg-perl: set PERL_USE_UNSAFE_INC
[buildroot-gz.git] / package / sysklogd / 0004-Remove-bogus-hand-written-klogctl-syscall-implementa.patch
blob548f1607181ff88e2feee291c3df728d7933fa06
1 From fe92a7a8197241f7d6b28ea3c8214bb6d2c7fda4 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Mon, 28 Nov 2016 23:10:55 +0100
4 Subject: [PATCH] Remove bogus hand-written klogctl() syscall implementation
6 The way the hand-written klogctl() syscall is written cannot compile, as
7 _syscall3() is just a function provided by the C library, so calling it
8 outside of a function doesn't build.
10 Since the musl C library provides a klogctl() function, we don't need
11 this hand-written system call anyway.
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 ---
15 klogd.c | 5 -----
16 1 file changed, 5 deletions(-)
18 diff --git a/klogd.c b/klogd.c
19 index 6505d96..9219671 100644
20 --- a/klogd.c
21 +++ b/klogd.c
22 @@ -274,13 +274,8 @@
24 #define __LIBRARY__
25 #include <linux/unistd.h>
26 -#if !defined(__GLIBC__)
27 -# define __NR_ksyslog __NR_syslog
28 -_syscall3(int,ksyslog,int, type, char *, buf, int, len);
29 -#else
30 #include <sys/klog.h>
31 #define ksyslog klogctl
32 -#endif
34 #define LOG_BUFFER_SIZE 4096
35 #define LOG_LINE_LENGTH 1000
36 --
37 2.7.4