aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-22 22:48:16 +0100
committerGitHub <noreply@github.com>2020-01-22 22:48:16 +0100
commitb477d19a6b7751b0c933b239dae4fc96dbcde9c4 (patch)
treea9de7a34e4e80d20192f5db44893e247136f0c51 /pyconfig.h.in
parentbpo-39406: os.putenv() avoids putenv_dict on Windows (GH-18126) (diff)
downloadcpython-b477d19a6b7751b0c933b239dae4fc96dbcde9c4.tar.gz
cpython-b477d19a6b7751b0c933b239dae4fc96dbcde9c4.tar.bz2
cpython-b477d19a6b7751b0c933b239dae4fc96dbcde9c4.zip
bpo-39406: Implement os.putenv() with setenv() if available (GH-18128)
If setenv() C function is available, os.putenv() is now implemented with setenv() instead of putenv(), so Python doesn't have to handle the environment variable memory.
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r--pyconfig.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in
index e053be15a11..1918fab8bdb 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -895,6 +895,9 @@
/* Define to 1 if you have the `setegid' function. */
#undef HAVE_SETEGID
+/* Define to 1 if you have the `setenv' function. */
+#undef HAVE_SETENV
+
/* Define to 1 if you have the `seteuid' function. */
#undef HAVE_SETEUID