testsuite: handle SIGLOST/SIGPWR conflict in sparc64-*-linux-gnu targets.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / sigall.c
index 110029d8e283a8cabc9d76fa8ae08cf50bab2688..68f3ecbe41c6e4252c4b52b86417bd490de49e5f 100644 (file)
@@ -1083,7 +1083,7 @@ return 0;
 int
 gen_PWR ()
 {
-#ifdef SIGPWR
+#if defined(SIGPWR) && (!defined (SIGLOST) || SIGPWR != SIGLOST)
   kill (getpid (), SIGPWR);
 #else
   handle_PWR (0);
@@ -1662,7 +1662,7 @@ main ()
 #ifdef SIGUSR2
   signal (SIGUSR2, handle_USR2);
 #endif
-#ifdef SIGPWR
+#if defined(SIGPWR) && (!defined (SIGLOST) || SIGPWR != SIGLOST)
   signal (SIGPWR, handle_PWR);
 #endif
 #if defined (SIGPOLL) && (!defined (SIGIO) || SIGPOLL != SIGIO)
This page took 0.025979 seconds and 4 git commands to generate.