On Sun, Mar 21, 2010 at 11:24:38PM +0100, Bruno Haible wrote: > Richard W.M. Jones wrote: > > (The test program it is running is: > > > > | int > > | main () > > | { > > | > > | if (setenv ("", "", 0) != -1) return 1; > > | if (errno != EINVAL) return 2; > > | if (setenv ("a", "=", 1) != 0) return 3; > > | if (strcmp (getenv ("a"), "=") != 0) return 4; > > | > > | ; > > | return 0; > > | } > > This is lacking a #include <string.h>. I'm updating the test: > > > 2010-03-21 Bruno Haible <br...@clisp.org> > > setenv: Tweaks. > * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in > the test program. > * doc/posix-functions/setenv.texi: Update platforms list.
Not sure if you were expecting that this would fix the original problem, but I just tested it and it doesn't fix it. The logic behind how Gnulib chooses whether or not to include the replacement function is fiendishly complex. Is there any way to force it to include the replacement function? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/