diff options
author | Andre Heinecke <[email protected]> | 2020-08-06 07:50:16 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2020-08-06 07:50:16 +0000 |
commit | 0676d41ef57db4da469aa9b733f8965606b667ec (patch) | |
tree | f749ad385e09da0edaa9d07da8ce39b7904fd5f8 | |
parent | qt: Port to new setExpire() (diff) | |
download | gpgme-0676d41ef57db4da469aa9b733f8965606b667ec.tar.gz gpgme-0676d41ef57db4da469aa9b733f8965606b667ec.zip |
cpp: Use cstdlib getenv for portability
* lang/cpp/src/editinteractor.cpp (EditInteractor::Private::Private):
Use std::getenv.
--
This should fix compiling on MacOS X
GnuPG-Bug-Id: T5013
-rw-r--r-- | lang/cpp/src/editinteractor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/cpp/src/editinteractor.cpp b/lang/cpp/src/editinteractor.cpp index 36d1be63..774903d4 100644 --- a/lang/cpp/src/editinteractor.cpp +++ b/lang/cpp/src/editinteractor.cpp @@ -41,6 +41,7 @@ #include <cerrno> #include <cstring> +#include <cstdlib> #ifndef GPG_ERR_ALREADY_SIGNED # define GPG_ERR_ALREADY_SIGNED GPG_ERR_USER_1 @@ -178,7 +179,7 @@ EditInteractor::Private::Private(EditInteractor *qq) error(), debug(nullptr) { - const char *debug_env = getenv("GPGMEPP_INTERACTOR_DEBUG"); + const char *debug_env = std::getenv("GPGMEPP_INTERACTOR_DEBUG"); if (!debug_env) { return; } |