0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch 887 B

123456789101112131415161718192021222324252627282930
  1. From 8e69b663d6ddef132041a1186f081fdd74d4a31d Mon Sep 17 00:00:00 2001
  2. From: rofl0r <retnyg@gmx.net>
  3. Date: Mon, 20 Jan 2014 21:31:34 +0100
  4. Subject: [PATCH 3/3] remove inclusion of sysinfo.h in kernel.h
  5. the declaration of struct sysinfo clashes with userspace.
  6. it's not quite clear why that header was included from kernel.h,
  7. as none of its functionality is needed.
  8. ---
  9. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  10. Upstream-Status: Submitted
  11. include/uapi/linux/kernel.h | 2 ++
  12. 1 file changed, 2 insertions(+)
  13. diff --git a/include/uapi/linux/kernel.h b/include/uapi/linux/kernel.h
  14. index fadf2db71fe8..813800ed141f 100644
  15. --- a/include/uapi/linux/kernel.h
  16. +++ b/include/uapi/linux/kernel.h
  17. @@ -2,7 +2,9 @@
  18. #ifndef _UAPI_LINUX_KERNEL_H
  19. #define _UAPI_LINUX_KERNEL_H
  20. +#ifdef __GLIBC__
  21. #include <linux/sysinfo.h>
  22. +#endif
  23. #include <linux/const.h>
  24. #endif /* _UAPI_LINUX_KERNEL_H */