From 30201bac38514dede6772a0b69586ee9492f07c7 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Wed, 11 Jan 2017 09:28:39 +0100 Subject: [PATCH] fix(env_util): Add missing header --- src/utils/env.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/env.cpp b/src/utils/env.cpp index f6cfc376..4a4c10fc 100644 --- a/src/utils/env.cpp +++ b/src/utils/env.cpp @@ -1,4 +1,5 @@ #include +#include #include #include @@ -9,7 +10,7 @@ POLYBAR_NS namespace env_util { bool has(const char* var) { const char* env{std::getenv(var)}; - return env != nullptr && strlen(env) > 0; + return env != nullptr && std::strlen(env) > 0; } string get(const char* var, string fallback) {