diff options
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-include-linux-sysinfo.h-directly.patch')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-include-linux-sysinfo.h-directly.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-include-linux-sysinfo.h-directly.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-include-linux-sysinfo.h-directly.patch new file mode 100644 index 000000000..1b033acc4 --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-include-linux-sysinfo.h-directly.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From ab060a57b41f989665ade20e813bbcb67f91f1f2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 9 Jul 2017 15:56:28 -0700 | ||
4 | Subject: [PATCH] include linux/sysinfo.h directly | ||
5 | |||
6 | This is done to avoid the kernel header linux/kernel.h to use | ||
7 | __GLIBC__ define to decide on if libc implements sysinfo() API | ||
8 | or not. Kernel headers should be independent of such assumptions | ||
9 | but until its done in right place, change the local header | ||
10 | override to avoid this assumption | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | usr/include/sys/sysinfo.h | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/usr/include/sys/sysinfo.h b/usr/include/sys/sysinfo.h | ||
18 | index dba68dc6..d145c0b1 100644 | ||
19 | --- a/usr/include/sys/sysinfo.h | ||
20 | +++ b/usr/include/sys/sysinfo.h | ||
21 | @@ -5,7 +5,7 @@ | ||
22 | #ifndef _SYS_SYSINFO_H | ||
23 | #define _SYS_SYSINFO_H | ||
24 | |||
25 | -#include <linux/kernel.h> | ||
26 | +#include <linux/sysinfo.h> | ||
27 | |||
28 | extern int sysinfo(struct sysinfo *info); | ||
29 | |||
30 | -- | ||
31 | 2.13.2 | ||
32 | |||