diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2022-07-24 20:41:20 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2022-07-24 20:41:20 +0900 |
commit | ac6257f1507af144f7c88d030bbf076790d86a42 (patch) | |
tree | 12067be217834bca5ed0e6328d14f331a13579cf /Src/zsh_system.h | |
parent | 13c6b648385b550efde5bf7be4bdb97cb67dec5f (diff) | |
download | zsh-ac6257f1507af144f7c88d030bbf076790d86a42.tar.gz zsh-ac6257f1507af144f7c88d030bbf076790d86a42.tar.xz zsh-ac6257f1507af144f7c88d030bbf076790d86a42.zip |
50418: use setenv(3)/getenv(3) on newer macOS
Diffstat (limited to 'Src/zsh_system.h')
-rw-r--r-- | Src/zsh_system.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |