diff options
| author | Sam James <sam@gentoo.org> | 2021-12-30 09:39:10 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2021-12-30 09:39:10 +0000 |
| commit | e1bd866997acfb6ed2f4e3051ce233658f1b69bc (patch) | |
| tree | b9d112ad811a1788c10a63c41b4d7f909fdcf690 /sys-kernel/linux-headers/files/linux-headers-5.15-remove-inclusion-sysinfo.h.patch | |
| parent | 1ef3659212ff98d2e6bb5df51e405c0953a45fec (diff) | |
| download | gentoo-e1bd866997acfb6ed2f4e3051ce233658f1b69bc.tar.gz gentoo-e1bd866997acfb6ed2f4e3051ce233658f1b69bc.tar.bz2 gentoo-e1bd866997acfb6ed2f4e3051ce233658f1b69bc.zip | |
sys-kernel/linux-headers: fix 5.10 for musl (sysinfo.h)
Notably fixes btrfs-progs build.
Closes: https://bugs.gentoo.org/828726
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-kernel/linux-headers/files/linux-headers-5.15-remove-inclusion-sysinfo.h.patch')
| -rw-r--r-- | sys-kernel/linux-headers/files/linux-headers-5.15-remove-inclusion-sysinfo.h.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-kernel/linux-headers/files/linux-headers-5.15-remove-inclusion-sysinfo.h.patch b/sys-kernel/linux-headers/files/linux-headers-5.15-remove-inclusion-sysinfo.h.patch new file mode 100644 index 000000000000..064066f19ef6 --- /dev/null +++ b/sys-kernel/linux-headers/files/linux-headers-5.15-remove-inclusion-sysinfo.h.patch @@ -0,0 +1,24 @@ +Earlier version: https://git.alpinelinux.org/aports/tree/main/linux-headers/0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch +https://bugs.gentoo.org/828726 + +From: rofl0r <retnyg@gmx.net> +Date: Mon, 20 Jan 2014 21:31:34 +0100 +Subject: [PATCH 3/3] remove inclusion of sysinfo.h in kernel.h + +the declaration of struct sysinfo clashes with userspace. +it's not quite clear why that header was included from kernel.h, +as none of its functionality is needed. +--- a/include/uapi/linux/kernel.h ++++ b/include/uapi/linux/kernel.h +@@ -2,7 +2,9 @@ + #ifndef _UAPI_LINUX_KERNEL_H + #define _UAPI_LINUX_KERNEL_H + ++#ifdef __GLIBC__ + #include <linux/sysinfo.h> + #include <linux/const.h> ++#endif + + #endif /* _UAPI_LINUX_KERNEL_H */ + + |
