On Thu, 20 Jul 2006 15:59:05 +0200, Trond Hasle Amundsen said: > Try this patch: > +#define __STDC__ 1 Ick. :) There's 3 possibilities here: 1) Sun's compiler is actually standard-compliant, but doesn't define that symbol itself. Not sure how/why it would do that. 2) Sun's compiler is actually standards-busticated, and defining that just *seems* to work, but papers over any deficiencies. Also bad news. 3) Sun's compiler has multiple personalities (ANSI, K&R, etc), selected by invoking under different names/flags. Setting $PATH and/or $CC correctly to select an ANSI personality should make it work without having to hack the source. A quick perusal of the nearest Solaris 9 box I have handy indicates that it's the 3rd.
Attachment:
pgpSmfNBw1beM.pgp
Description: PGP signature