Index: gdb/testsuite/gdb.base/sigall.c |
diff --git a/gdb/testsuite/gdb.base/sigall.c b/gdb/testsuite/gdb.base/sigall.c |
index 110029d8e283a8cabc9d76fa8ae08cf50bab2688..68f3ecbe41c6e4252c4b52b86417bd490de49e5f 100644 |
--- a/gdb/testsuite/gdb.base/sigall.c |
+++ b/gdb/testsuite/gdb.base/sigall.c |
@@ -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) |