Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 1996 09:52:24 -0400 (EDT)
From:      Thomas David Rivers <ponds!rivers@dg-rtp.dg.com>
To:        bde@zeta.org.au, ponds!freebsd.org!freebsd-hackers, ponds!uriah.heep.sax.de!j
Cc:        ponds!ponds!rivers
Subject:   Re: netdb.h and -traditional...
Message-ID:  <199608171352.JAA09556@lakes.water.net>

next in thread | raw e-mail | index | archive | help
> 
> >> 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.
> 
> This is broken for gcc -traditional.  It works for non-gcc non-ANSI
> compilers.
> 
> Bruce
> 

 So - should someone fix cdefs for GCC, or simply fix netdb.h?

	- Dave R. -



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