This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Avoid duplicate case statement
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: newlib at sourceware dot org
- Date: Tue, 18 May 2010 10:52:22 -0400
- Subject: [PATCH] Avoid duplicate case statement
I'm submitting the below as obvious so that Cygwin builds again.
cgf
2010-05-18 Christopher Faylor <me+cygwin@cgf.cx>
* libc/string/strsignal.c (strsignal): Avoid duplicate case statement
where SIGPWR == SIGLOST.
Index: libc/string/strsignal.c
===================================================================
RCS file: /cvs/uberbaum/newlib/libc/string/strsignal.c,v
retrieving revision 1.1
diff -d -u -p -r1.1 strsignal.c
--- libc/string/strsignal.c 11 May 2010 20:27:20 -0000 1.1
+++ libc/string/strsignal.c 18 May 2010 14:50:47 -0000
@@ -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;