>>>> "ajc" == Andrew J Cosgriff
<ajc(a)bing.wattle.id.au> writes:
ajc> the relevant part of sys/cdefs.h (which is part of the Bezerkely DB library)
ajc> sez :
ajc> /*
ajc> * In non-ANSI C environments, new programs will want ANSI-only C keywords
ajc> * deleted from the program and old programs will want them left alone.
ajc> * When using a compiler other than gcc, programs using the ANSI C keywords
ajc> * const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
ajc> * When using "gcc -traditional", we assume that this is the intent; if
ajc> * __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
ajc> */
ajc> #ifndef NO_ANSI_KEYWORDS
ajc> #define const /* delete ANSI C keywords */
ajc> #define inline
ajc> #define signed
ajc> #define volatile
ajc> #endif
That (questionable) part only gets used if __STDC__ is undefined. Try
``cc -std'' instead. If this works, we should make sure that -std is
used by default on DU cc invocations. The C standard's been out for 10 years!
Martin