[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] getdate.y problem - 'void unsetenv(); ' vs 'int unseten
From: |
Mark D. Baushke |
Subject: |
Re: [Bug-gnulib] getdate.y problem - 'void unsetenv(); ' vs 'int unsetenv(); ' |
Date: |
Tue, 02 Nov 2004 10:22:15 -0800 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bruno Haible <address@hidden> writes:
> Mark D. Baushke wrote:
> > On NetBSD, and FreeBSD and Redhat 7.3 GNU/Linux,
> >
> > The unsetenv() function is a void function:
...
> getdate.y is correct: POSIX specifies a return type of 'int' for
> unsetenv().
Yup, I see it in IEEE Std 1003.1-2004 now.
(I didn't see it in my IEEE Std 1003.1-1998 copy... I
suppose I should avoid using that copy as a reference. :-)
> I've changed the gnulib setenv module to provide a wrapper macro for
> unsetenv(), if the system declares it as void. Does this work for you?
Yes.
Thank you,
-- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQFBh9BX3x41pRYZE/gRArcQAKDdCXPCJ3zY/YC/wZUw4lYwQOFWzACeMmbQ
fxBxgsubqKe0hDqTBbzC8iw=
=969O
-----END PGP SIGNATURE-----