[sorry Joel for not replying to all initially] > > Or have gnulib's getopt.h explicitly define __STDC__ to 1? > > Will that work for every getopt.h that gnulib's getopt.h might include? > It seems that, in practice, the use of __STDC__ is not very standard.
Having OpenCSW regenerate the libgnugetopt package with "gnulib-tool --create-testdir --dir=libgnugetopt getopt-gnu" and dropping support for the old package seems easiest, and does not require further uglification of gnulib. Given the last findings, I'm now with Bruno on this. Paolo