diff --git a/tests/Gtest-resume-sig.c b/tests/Gtest-resume-sig.c index 60cae7a1..c6bda67a 100644 --- a/tests/Gtest-resume-sig.c +++ b/tests/Gtest-resume-sig.c @@ -23,12 +23,20 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* Verify that unw_resume() restores the signal mask at proper time. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include #include #include +#ifdef HAVE_IA64INTRIN_H +# include +#endif + #define panic(args...) \ do { fprintf (stderr, args); ++nerrors; } while (0) @@ -47,7 +55,11 @@ handler (int sig) char foo; #if UNW_TARGET_IA64 +# ifdef __ECC + void *bsp = (void *) __getReg(_IA64_REG_AR_BSP); +# else void *bsp = __builtin_ia64_bsp (); +#endif if (verbose) printf ("bsp = %p\n", bsp); #endif