Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb@sources.redhat.com
Subject: Re: strsignal() declaration in lin-lwp.c?
Date: Thu, 05 Dec 2002 13:57:00 -0000	[thread overview]
Message-ID: <20021205215815.GA21403@nevyn.them.org> (raw)
In-Reply-To: <1021205214331.ZM16509@localhost.localdomain>

On Thu, Dec 05, 2002 at 02:43:32PM -0700, Kevin Buettner wrote:
> I've just run into a problem in which the definition of strsignal() in
> lin-lwp.c conflicts with the definition in <string.h>.  Here's the
> declaration in lin-lwp.c:
> 
>     extern const char *strsignal (int sig);
> 
> And here's what it looks like in <string.h>:
> 
>     extern char *strsignal (int __sig) __THROW;
> 
> The fact that the lin-lwp.c version has a ``const'' is the problem.
> 
> Could we remove the ``const'' from the lin-lwp.c declaration?
> 
> It seems that we can't remove the declaration entirely because
> the declaration that I'm seeing in the header file won't be used
> if __USE_GNU is undefined.

I'd say we could remove the const - or just use -D_GNU_SOURCE...
Glibc 2.3.1 has it without const, and so does 2.2.5.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-12-05 21:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-05 13:43 Kevin Buettner
2002-12-05 13:57 ` Daniel Jacobowitz [this message]
2002-12-07  3:53   ` Mark Kettenis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021205215815.GA21403@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox