Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From d966d52d1e569cbc2293d841285e2b8941f28c61 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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> |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 13 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | --- |
| 15 | usr/include/sys/sysinfo.h | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | --- a/usr/include/sys/sysinfo.h |
| 19 | +++ b/usr/include/sys/sysinfo.h |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 20 | @@ -6,7 +6,7 @@ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | #define _SYS_SYSINFO_H |
| 22 | |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 23 | #include <sys/types.h> |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 24 | -#include <linux/kernel.h> |
| 25 | +#include <linux/sysinfo.h> |
| 26 | |
| 27 | extern int sysinfo(struct sysinfo *info); |
| 28 | |