diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-02-24 20:09:14 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-02-27 23:29:07 +0100 |
| commit | 89515304e4eb81ff9eb65f3a582136fc658de139 (patch) | |
| tree | 24b445c4aa5588772aa98f830f4646a738727810 /config | |
| parent | 1d8e7683604828592bd41cdac5a351145cd93487 (diff) | |
| download | rneovim-89515304e4eb81ff9eb65f3a582136fc658de139.tar.gz rneovim-89515304e4eb81ff9eb65f3a582136fc658de139.tar.bz2 rneovim-89515304e4eb81ff9eb65f3a582136fc658de139.zip | |
os/env: use libuv v1.12 getenv/setenv API
- Minimum required libuv is now v1.12
- Because `uv_os_getenv` requires allocating, we must manage a map
(`envmap` in `env.c`) to maintain the old behavior of `os_getenv` .
- free() map-items after removal. khash.h does not make copies of
anything, so even its keys must be memory-managed by the caller.
closes #8398
closes #9267
Diffstat (limited to 'config')
| -rw-r--r-- | config/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | config/config.h.in | 2 |
2 files changed, 0 insertions, 11 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt index 442d91524b..91c1e7c629 100644 --- a/config/CMakeLists.txt +++ b/config/CMakeLists.txt @@ -47,17 +47,8 @@ if(Iconv_FOUND) set(HAVE_ICONV 1) endif() -check_function_exists(_putenv_s HAVE_PUTENV_S) -if(WIN32 AND NOT HAVE_PUTENV_S) - message(SEND_ERROR "_putenv_s() function not found on your system.") -endif() check_function_exists(opendir HAVE_OPENDIR) check_function_exists(readlink HAVE_READLINK) -check_function_exists(setenv HAVE_SETENV) -if(UNIX AND NOT HAVE_SETENV) - message(SEND_ERROR "setenv() function not found on your system.") -endif() -check_function_exists(unsetenv HAVE_UNSETENV) check_function_exists(setpgid HAVE_SETPGID) check_function_exists(setsid HAVE_SETSID) check_function_exists(sigaction HAVE_SIGACTION) diff --git a/config/config.h.in b/config/config.h.in index 3f2f68da83..ad636632f4 100644 --- a/config/config.h.in +++ b/config/config.h.in @@ -32,8 +32,6 @@ #cmakedefine HAVE_UV_TRANSLATE_SYS_ERROR // TODO: add proper cmake check // #define HAVE_SELINUX 1 -#cmakedefine HAVE_SETENV -#cmakedefine HAVE_UNSETENV #cmakedefine HAVE_SETPGID #cmakedefine HAVE_SETSID #cmakedefine HAVE_SIGACTION |