From ac6257f1507af144f7c88d030bbf076790d86a42 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Sun, 24 Jul 2022 20:41:20 +0900 Subject: 50418: use setenv(3)/getenv(3) on newer macOS --- Src/zsh_system.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/zsh_system.h') diff --git a/Src/zsh_system.h b/Src/zsh_system.h index 6f4efce96..16f724401 100644 --- a/Src/zsh_system.h +++ b/Src/zsh_system.h @@ -783,7 +783,8 @@ extern char **environ; * We always need setenv and unsetenv in pairs, because * we don't know how to do memory management on the values set. */ -#if defined(HAVE_SETENV) && defined(HAVE_UNSETENV) && !defined(__APPLE__) +#if defined(HAVE_SETENV) && defined(HAVE_UNSETENV) \ + && !defined(SETENV_MANGLES_EQUAL) # define USE_SET_UNSET_ENV #endif -- cgit 1.4.1