[nas] Gcc 4.0 fixes for nas 1.7

Jon Trulson jon at radscan.com
Sun Jan 2 12:56:08 MST 2005


On Sat, 1 Jan 2005, Steve McIntyre wrote:

> On Thu, Dec 30, 2004 at 02:33:19PM -0700, Jon Trulson wrote:
>> On Sun, 26 Dec 2004, Steve McIntyre wrote:
>>
>>> Hi Jon,
>>>
>>> Gcc 4.0 is much pickier about function prototypes. It throws lots of
>>> warnings when compiling nas 1.7, and one error in auutil.c. The
>>> attached patch fixes them for me (mainly by simply including standard
>>> headers!).
>>>
>>
>> 	Hello Steve,
>>
>> 	Unfortunately the issue with this is that not all systems provide
>> stdlib.h.
>
> Christ. How many old broken systems does nas still support? stdlib.h
> is part of the standard library from C89...!


 	:)  Well, I could just apply as-is and see who complains...

>
>> 	The one thing I'm not sure about is the socklen_t changes... How
>> portable is this?  It seems like every system has a different idea about
>> it :)  Maybe I need an autoconf rule to detect when this typedef is
>> available as well?
>
> Maybe, yes. Using http://www.freebsd.org/cgi/man.cgi says that Linux,
> FreeBSD and Solaris all have socklen_t, at least. It would be nice to
> see what other systems use here.
>
>

 	Indeed, though I do not have access to them...  Maybe autoconf has 
some rules for this stuff already...

-- 
Jon Trulson    mailto:jon at radscan.com
ID: 1A9A2B09, FP: C23F328A721264E7 B6188192EC733962
PGP keys at http://radscan.com/~jon/PGPKeys.txt
#include <std/disclaimer.h>
"I am Nomad." -Nomad




More information about the Nas mailing list