void-packages/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
Juan RP fc7248fa85 kernel-libc-headers: apply patches from Alpine.
The patches have been updated for 3.18.6 and should fix build issues
with code that includes netinet/in6.h and linux headers (among others).
2015-05-31 15:49:36 +02:00

12 lines
275 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