]> Savannah Git Hosting - gnulib.git/commit
unsetenv: On native Windows, don't modify _environ directly.
authorBruno Haible <bruno@clisp.org>
Wed, 5 Jun 2024 23:21:28 +0000 (01:21 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Jun 2024 23:29:43 +0000 (01:29 +0200)
commit702533233dfc861107c4bfbcfd8af76e246f2820
treeacb39fcb002c2e08ff3d51a4fb03057d3760d5b1
parentaf3da01b02aa464ac3c7699b045444409791a5f8
unsetenv: On native Windows, don't modify _environ directly.

* m4/setenv.m4 (gl_PREREQ_UNSETENV): Check for _putenv.
* lib/unsetenv.c (unsetenv): Add native Windows handling, from
lib/putenv.c.
* modules/unsetenv (Depends-on): Add free-posix, malloc-posix.
* m4/putenv.m4 (gl_FUNC_PUTENV): Use AC_CHECK_DECLS_ONCE.
* lib/putenv.c (_unsetenv): Moved to lib/unsetenv.c.
(putenv): Invoke unsetenv instead of _unsetenv.
* modules/putenv (Depends-on): Add unsetenv.
ChangeLog
lib/putenv.c
lib/unsetenv.c
m4/putenv.m4
m4/setenv.m4
modules/putenv
modules/unsetenv