aboutsummaryrefslogtreecommitdiff
path: root/libbutl/utility.mxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/utility.mxx')
-rw-r--r--libbutl/utility.mxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/libbutl/utility.mxx b/libbutl/utility.mxx
index 6965be4..bd24ffd 100644
--- a/libbutl/utility.mxx
+++ b/libbutl/utility.mxx
@@ -322,7 +322,13 @@ LIBBUTL_MODEXPORT namespace butl
// overrides (thread_env).
//
LIBBUTL_SYMEXPORT optional<std::string>
- getenv (const std::string&);
+ getenv (const char*);
+
+ inline optional<std::string>
+ getenv (const std::string& n)
+ {
+ return getenv (n.c_str ());
+ }
// Set the process environment variable. Best done before starting any
// threads (see thread_env). Throw system_error on failure.