From 8b2a7d4793985009ad4f388710d140c41a2a71a5 Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Wed, 1 Nov 2023 16:38:29 +0000 Subject: [PATCH] Fix headers Signed-off-by: Michael Carroll --- src/Environment.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Environment.cc b/src/Environment.cc index a0f62ba..552c918 100644 --- a/src/Environment.cc +++ b/src/Environment.cc @@ -22,7 +22,13 @@ #include #include +#ifdef _WIN32 +#include +#endif + +#ifndef _WIN32 extern char ** environ; +#endif namespace gz { @@ -158,7 +164,7 @@ EnvironmentMap env() ret[key] = value; // Advance to the next environment variable. - env_var = equal_sign + 1; + ev_var = equal_sign + 1; } free(env_buf); #else