Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 1996 08:05:48 -0400 (EDT)
From:      Thomas David Rivers <ponds!rivers@dg-rtp.dg.com>
To:        joerg_wunsch@uriah.heep.sax.de, ponds!freefall.cdrom.com!freebsd-hackers
Subject:   Re: netdb.h and -traditional...
Message-ID:  <199608171205.IAA08980@lakes.water.net>

next 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.

 Yep - it's supposed to do that, but doesn't... 

 A couple of whacks at <sys/cdefs.h> should fix it.  I played around
with it a little, but when cdefs.h didn't appear to #define const
(and the other keywords) away, I just quickly punted to my other
fix.

	- Dave R. -



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