about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-06-22 08:32:55 -0400
committerUlrich Drepper <drepper@gmail.com>2011-06-22 08:32:55 -0400
commit6e502e19455c6110dd4487d91b7b7d6d8121f9ba (patch)
tree599037522f1ed983f575eaa4190308e11107e27f /sysdeps/unix/sysv/linux/bits
parent51f9aa6a1ed763cb133fff2efddfbf564a82a528 (diff)
downloadglibc-6e502e19455c6110dd4487d91b7b7d6d8121f9ba.tar.gz
glibc-6e502e19455c6110dd4487d91b7b7d6d8121f9ba.tar.xz
glibc-6e502e19455c6110dd4487d91b7b7d6d8121f9ba.zip
Clean up after kernel sigcontext header mess
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits')
-rw-r--r--sysdeps/unix/sysv/linux/bits/sigcontext.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/sigcontext.h b/sysdeps/unix/sysv/linux/bits/sigcontext.h
index 67dcf94981..0f5b607cf9 100644
--- a/sysdeps/unix/sysv/linux/bits/sigcontext.h
+++ b/sysdeps/unix/sysv/linux/bits/sigcontext.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 2011 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
@@ -26,4 +26,8 @@
 # define sigcontext_struct sigcontext
 
 # include <asm/sigcontext.h>
+
+/* The Linux kernel headers redefine NULL wrongly, so cleanup afterwards.  */
+# define __need_NULL
+# include <stddef.h>
 #endif