blob: b0e701413809b39de208da3acaa38e4f63afb2b6 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From 8e69b663d6ddef132041a1186f081fdd74d4a31d Mon Sep 17 00:00:00 2001
2From: rofl0r <retnyg@gmx.net>
3Date: Mon, 20 Jan 2014 21:31:34 +0100
4Subject: [PATCH 3/3] remove inclusion of sysinfo.h in kernel.h
5
6the declaration of struct sysinfo clashes with userspace.
7it's not quite clear why that header was included from kernel.h,
8as none of its functionality is needed.
9---
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11Upstream-Status: Submitted
12
13 include/uapi/linux/kernel.h | 2 ++
14 1 file changed, 2 insertions(+)
15
Andrew Geissler5f350902021-07-23 13:09:54 -040016Index: linux-5.12.11/include/uapi/linux/kernel.h
Patrick Williamsc0f7c042017-02-23 20:41:17 -060017===================================================================
Andrew Geissler5f350902021-07-23 13:09:54 -040018--- linux-5.12.11.orig/include/uapi/linux/kernel.h
19+++ linux-5.12.11/include/uapi/linux/kernel.h
20@@ -2,7 +2,9 @@
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021 #ifndef _UAPI_LINUX_KERNEL_H
22 #define _UAPI_LINUX_KERNEL_H
23
24+#ifdef __GLIBC__
25 #include <linux/sysinfo.h>
Andrew Geissler5f350902021-07-23 13:09:54 -040026 #include <linux/const.h>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027+#endif
28
Andrew Geissler5f350902021-07-23 13:09:54 -040029 #endif /* _UAPI_LINUX_KERNEL_H */