bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnulib setenv on Mac OS X bug?


From: Richard W.M. Jones
Subject: Re: Gnulib setenv on Mac OS X bug?
Date: Sun, 21 Mar 2010 22:51:13 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

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  <address@hidden>
> 
>       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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]