From 8f01c775162c36a092f044a26985f17f6c218662 Mon Sep 17 00:00:00 2001
From: Christopher Faylor <me@cgf.cx>
Date: Tue, 18 May 2010 14:52:38 +0000
Subject: [PATCH] * libc/string/strsignal.c (strsignal): Avoid duplicate case
 statement where SIGPWR == SIGLOST.

---
 newlib/ChangeLog               | 5 +++++
 newlib/libc/string/strsignal.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index b6d00e32c..2198789ea 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-18  Christopher Faylor  <me+cygwin@cgf.cx>
+
+	* libc/string/strsignal.c (strsignal): Avoid duplicate case statement
+	where SIGPWR == SIGLOST.
+
 2010-05-11  Jeff Johnston  <jjohnstn@redhat.com>
 
 	* libc/stdlib/__call_atexit.c: Fix lock to be of type
diff --git a/newlib/libc/string/strsignal.c b/newlib/libc/string/strsignal.c
index 6d39e8b75..e03c1086b 100644
--- a/newlib/libc/string/strsignal.c
+++ b/newlib/libc/string/strsignal.c
@@ -242,7 +242,7 @@ _DEFUN (strsignal, (signal),
       buffer = "Profiling timer expired";
       break;
 #endif
-#ifdef SIGLOST
+#if defined(SIGLOST) && SIGLOST != SIGPWR
     case SIGLOST:
       buffer = "Resource lost";
       break;