From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28471 invoked by alias); 5 Dec 2002 21:57:41 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 28464 invoked from network); 5 Dec 2002 21:57:40 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 5 Dec 2002 21:57:40 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18K5sd-0002P0-00 for ; Thu, 05 Dec 2002 17:58:08 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18K40d-0005aT-00 for ; Thu, 05 Dec 2002 16:58:15 -0500 Date: Thu, 05 Dec 2002 13:57:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: strsignal() declaration in lin-lwp.c? Message-ID: <20021205215815.GA21403@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <1021205214331.ZM16509@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1021205214331.ZM16509@localhost.localdomain> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-12/txt/msg00096.txt.bz2 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 . Here's the > declaration in lin-lwp.c: > > extern const char *strsignal (int sig); > > And here's what it looks like in : > > 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