This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libgloss psignal declaration [PATCH]
- From: Shaun Jackman <sjackman at gmail dot com>
- To: GCC Bugs <gcc-bugs at gcc dot gnu dot org>
- Date: Wed, 26 Oct 2005 16:00:49 -0600
- Subject: libgloss psignal declaration [PATCH]
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
I found the following patch necessary to build libiberty with newlib
headers. Although, glibc seems to use the same signature now.
Cheers,
Shaun
2005-10-26 Shaun Jackman <sjackman@gmail.com>
* libiberty/strsignal.c (psignal): Change the signo parameter from
unsigned to int, and message from char * to const char*.
Index: libiberty/strsignal.c
===================================================================
RCS file: /cvs/src/src/libiberty/strsignal.c,v
retrieving revision 1.9
diff -u -r1.9 strsignal.c
--- libiberty/strsignal.c 28 Mar 2005 02:09:01 -0000 1.9
+++ libiberty/strsignal.c 26 Oct 2005 21:56:29 -0000
@@ -549,7 +549,7 @@
#ifndef HAVE_PSIGNAL
void
-psignal (unsigned signo, char *message)
+psignal (int signo, const char *message)
{
if (signal_names == NULL)
{