Commit 468c45a3 by James E Wilson Committed by Jim Wilson

Fix compile error with old glibc verisons.

* config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
glibc 2.3 or better.

From-SVN: r77443
parent 9c917669
2004-02-06 James E Wilson <wilson@specifixinc.com>
* config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
glibc 2.3 or better.
2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
* doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
......
......@@ -58,6 +58,11 @@ do { \
/* Do code reading to identify a signal frame, and set the frame
state data appropriately. See unwind-dw2.c for the structs. */
/* This works only for glibc-2.3 and later, because sigcontext is different
in glibc-2.2.4. */
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)
#ifdef IN_LIBGCC2
#include <signal.h>
#include <sys/ucontext.h>
......@@ -207,3 +212,4 @@ do { \
}
#endif /* IN_LIBGCC2 */
#endif /* glibc-2.3 or better */
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