]> Savannah Git Hosting - gnulib.git/commit
setenv: On native Windows, don't modify _environ directly.
authorBruno Haible <bruno@clisp.org>
Thu, 6 Jun 2024 00:33:41 +0000 (02:33 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Jun 2024 00:33:41 +0000 (02:33 +0200)
commitcd90c9c82055056e9986244528df19228363951a
treeb2a71c933dceffc1fb21081a7a9c144e87556a63
parent43433e89de71ad9f7979605355ebee315ee78ddc
setenv: On native Windows, don't modify _environ directly.

* m4/setenv.m4 (gl_PREREQ_SETENV): Check for _putenv.
* lib/setenv.c: On native Windows, include <windows.h> and define
SetEnvironmentVariable.
(setenv) [HAVE_DECL__PUTENV]: New implementation for platforms with
_putenv.
* modules/setenv (Depends-on): Add malloc-posix.
ChangeLog
lib/setenv.c
m4/setenv.m4
modules/setenv