Commit 4e18507b by H.J. Lu Committed by H.J. Lu

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.

From-SVN: r163933
parent f884552b
2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
check glibc.
2010-09-06 Uros Bizjak <ubizjak@gmail.com> 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
PR target/22152 PR target/22152
......
...@@ -106,7 +106,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context, ...@@ -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 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 the target, so we can't check on (e.g.) HAVE_SYS_UCONTEXT_H. Using the
target libc version macro should be enough. */ 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 <signal.h>
#include <sys/ucontext.h> #include <sys/ucontext.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment