core/glibc/glibc-2.3.6-kernelheaders.patch
2006-02-23 17:31:48 +00:00

21 lines
578 B
Diff

--- glibc/sysdeps/unix/sysv/linux/sys/sysctl.h~ 2004-04-29 22:09:24.000000000 +0200
+++ glibc/sysdeps/unix/sysv/linux/sys/sysctl.h 2005-01-10 20:01:28.956241560 +0100
@@ -22,6 +22,9 @@
#include <features.h>
#define __need_size_t
#include <stddef.h>
+#include <linux/version.h>
+
+#ifndef LIBC_HEADERS_VERSION
/* Prevent more kernel headers than necessary to be included. */
#ifndef _LINUX_KERNEL_H
# define _LINUX_KERNEL_H 1
@@ -40,6 +43,7 @@
# define __user
# define __undef__LINUX_COMPILER_H
#endif
+#endif /* LIBC_HEADERS_VERSION */
#include <linux/sysctl.h>