diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-07 07:30:48 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-07 07:30:48 +0000 |
commit | b49c3e995be112ab230941b777c737009b894220 (patch) | |
tree | c99363e9766a8853eee1c62319237c6f339d2b89 /gcc/config/ia64 | |
parent | a16f837d4d7f65ad240221a5dd27688cdf8aebe0 (diff) | |
download | gcc-b49c3e995be112ab230941b777c737009b894220.tar.gz |
Fix compile error with old glibc verisons.
* config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
glibc 2.3 or better.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77443 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/ia64')
-rw-r--r-- | gcc/config/ia64/linux.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/ia64/linux.h b/gcc/config/ia64/linux.h index fc7df808188..5c73b0c25ef 100644 --- a/gcc/config/ia64/linux.h +++ b/gcc/config/ia64/linux.h @@ -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 */ |