Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 1996 22:31:14 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Cc:        ponds!rivers@dg-rtp.dg.com (Thomas David Rivers)
Subject:   Re: netdb.h and -traditional...
Message-ID:  <199608162031.WAA07148@uriah.heep.sax.de>
In-Reply-To: <199608161308.JAA00494@lakes.water.net> from Thomas David Rivers at "Aug 16, 96 09:08:44 am"

next in thread | previous in thread | raw e-mail | index | archive | help
As Thomas David Rivers wrote:

> While building some older (non-ANSI) sources with the -traditional
> flag, I ran into the following (on 2.1.5) on line 139 of netdb.h:
> 
> const char      *hstrerror __P((int)); 
> 
> which, of course, breaks because 'const' is ANSI.

It is, of course :), supposed to work, since <sys/cdefs.h> #define's
const to nothing when working on a non-ANSI compiler.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608162031.WAA07148>