summaryrefslogtreecommitdiff
path: root/gcc/config/i386/linux-unwind.h
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-06 21:13:56 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-06 21:13:56 +0000
commit9f9d4999d76e8558d986849737b92f17141f92ba (patch)
tree231dc5214e78a7477469e6e9e948c39ad4ba5bb8 /gcc/config/i386/linux-unwind.h
parentb25df6d8e158f72ba6da1ac879a5d92758510f7c (diff)
downloadgcc-9f9d4999d76e8558d986849737b92f17141f92ba.tar.gz
Properly check glibc.
2010-09-06 H.J. Lu <hongjiu.lu@intel.com> * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly check glibc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163933 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/linux-unwind.h')
-rw-r--r--gcc/config/i386/linux-unwind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/i386/linux-unwind.h b/gcc/config/i386/linux-unwind.h
index 36ee3709261..415f7a3702b 100644
--- a/gcc/config/i386/linux-unwind.h
+++ b/gcc/config/i386/linux-unwind.h
@@ -106,7 +106,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context,
signal-turned-exceptions for them. There's also no configure-run for
the target, so we can't check on (e.g.) HAVE_SYS_UCONTEXT_H. Using the
target libc version macro should be enough. */
-#if !(__GLIBC__ == 2 && __GLIBC_MINOR__ == 0)
+#if defined __GLIBC__ && !(__GLIBC__ == 2 && __GLIBC_MINOR__ == 0)
#include <signal.h>
#include <sys/ucontext.h>