void-packages/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusio...

13 lines
271 B
Diff

--- include/uapi/linux/kernel.h.orig
+++ include/uapi/linux/kernel.h
@@ -1,7 +1,9 @@
#ifndef _UAPI_LINUX_KERNEL_H
#define _UAPI_LINUX_KERNEL_H
+#ifdef __GLIBC__
#include <linux/sysinfo.h>
+#endif
/*
* 'kernel.h' contains some often-used function prototypes etc