setenv() undeclared on Solaris

Dave Peticolas dave@krondo.com
18 Nov 2001 00:57:19 -0800


--=-ZJ59Jby0YXtkAzahlrzj
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2001-11-17 at 16:35, Rob Browning wrote:
> Dave Peticolas <dave@krondo.com> writes:
>=20
> > Yes, every release time we usually end up going around and removing
> > all of the setenv calls that have crept in. putenv is used
> > everywhere else so we might as well just standardize on that. With
> > g_strdup_printf, it's not that big of a deal, anyway.
>=20
> OK, though we need to fix your fix :>
>=20
> putenv uses the pointer you hand it directly, so if you malloc that
> pointer, you can't free it.  That's why I'd originally gone with
> setenv (interface is cleaner)...
>=20
> Took me a while to realize what was causing my "make check" failures

Yikes, then we need to fix the other uses as well.
Those are annoying semantics.

dave


--=-ZJ59Jby0YXtkAzahlrzj
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA793fv5effKKCmfpIRAimNAJwL0j9kHGMcsok7y6PjNEsiy4OLIwCeOjwY
JxQHtbwWgMLPieZ/Yie6zsg=
=C6bV
-----END PGP SIGNATURE-----

--=-ZJ59Jby0YXtkAzahlrzj--