aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2012-11-07 11:58:37 -0700
committerAndreas Jaeger <aj@suse.de>2012-11-13 09:22:33 +0100
commitfc8c942ba4e4b41a0f1a62f6c22062596346b02c (patch)
treebe654adf22bae65a8527fb5f62a212676ed49789 /sysdeps
parent494251ab9fbd715731c444b7ad6b37c49653bc09 (diff)
downloadglibc-fc8c942ba4e4b41a0f1a62f6c22062596346b02c.zip
glibc-fc8c942ba4e4b41a0f1a62f6c22062596346b02c.tar.gz
glibc-fc8c942ba4e4b41a0f1a62f6c22062596346b02c.tar.bz2
2012-11-07 Andreas Jaeger <aj@suse.de>
[BZ #14809] * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H) (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header guards are changed. Only define if not yet defined, #undef back after including linux/sysctl.h if defined here. (cherry picked from commit 01f34a3bd8c087ca4be0bd24857e454c8d29f20b) Conflicts: ChangeLog NEWS
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/sys/sysctl.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/sysctl.h b/sysdeps/unix/sysv/linux/sys/sysctl.h
index 110efaa..25ab7d0 100644
--- a/sysdeps/unix/sysv/linux/sys/sysctl.h
+++ b/sysdeps/unix/sysv/linux/sys/sysctl.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1999, 2002, 2003, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -40,6 +40,14 @@
# define __user
# define __undef__LINUX_COMPILER_H
#endif
+#ifndef _UAPI_LINUX_KERNEL_H
+# define _UAPI_LINUX_KERNEL_H
+# define __undef_UAPI_LINUX_KERNEL_H
+#endif
+#ifndef _UAPI_LINUX_TYPES_H
+# define _UAPI_LINUX_TYPES_H
+# define __undef_UAPI_LINUX_TYPES_H
+#endif
#include <linux/sysctl.h>
@@ -60,6 +68,14 @@
# undef __user
# undef __undef__LINUX_COMPILER_H
#endif
+#ifdef __undef_UAPI_LINUX_KERNEL_H
+# undef _UAPI_LINUX_KERNEL_H
+# undef __undef_UAPI_LINUX_KERNEL_H
+#endif
+#ifdef __undef_UAPI_LINUX_TYPES_H
+# undef _UAPI_LINUX_TYPES_H
+# undef __undef_UAPI_LINUX_TYPES_H
+#endif
__BEGIN_DECLS