board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / sysklogd / 0003-Remove-include-of-linux-time.h.patch
blob374d89bd05ced6fc85c17d7696b68397037d8ec3
1 From f4926a61ba2d3766255dd996bf0315bc8fa0c528 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Mon, 28 Nov 2016 23:09:03 +0100
4 Subject: [PATCH] Remove include of <linux/time.h>
6 klogd.c and ksym_mod.c currently include <linux/time.h> if GLIBC is not
7 defined. Unfortunately, this breaks badly with the musl C library: this
8 C library is not glibc so it doesn't define GLIBC, but it does have a
9 definition of "struct timespec" in its header file, which conflict with
10 the one provided by the Linux kernel headers.
12 So, this commit simply gets rid of this header inclusion.
14 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15 ---
16 klogd.c | 3 ---
17 ksym_mod.c | 3 ---
18 2 files changed, 6 deletions(-)
20 diff --git a/klogd.c b/klogd.c
21 index a173353..6505d96 100644
22 --- a/klogd.c
23 +++ b/klogd.c
24 @@ -262,9 +262,6 @@
25 #include <errno.h>
26 #include <fcntl.h>
27 #include <sys/stat.h>
28 -#if !defined(__GLIBC__)
29 -#include <linux/time.h>
30 -#endif /* __GLIBC__ */
31 #include <stdarg.h>
32 #include <paths.h>
33 #include <stdlib.h>
34 diff --git a/ksym_mod.c b/ksym_mod.c
35 index 2e69d65..6e26da1 100644
36 --- a/ksym_mod.c
37 +++ b/ksym_mod.c
38 @@ -116,9 +116,6 @@
39 #include <fcntl.h>
40 #include <sys/stat.h>
41 #include "module.h"
42 -#if !defined(__GLIBC__)
43 -#include <linux/time.h>
44 -#endif /* __GLIBC__ */
45 #include <stdarg.h>
46 #include <paths.h>
47 #include <linux/version.h>
48 --
49 2.7.4