]> 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 23:31:25 +0000 (01:31 +0200)
commita87037af61000d263fc3b7bbc3585011bfbb4eba
tree2c610825f55a906ddc08ad32793788c97dddce4b
parent702533233dfc861107c4bfbcfd8af76e246f2820
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