Commit cd90c9c82055056e9986244528df19228363951a

Bruno Haible 2024-06-06T02:33:41

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.