From a6f563247edd5c86add7c1d4773fc356dc524e87 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Thu, 27 Mar 2025 03:12:15 +0200 Subject: [PATCH] [util] Fix Windows build Windows headers define `environ`. --- util/options.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/options.hh b/util/options.hh index 0d2b42515..c6fa4195f 100644 --- a/util/options.hh +++ b/util/options.hh @@ -185,11 +185,11 @@ struct option_parser_t g_string_free (s, TRUE); } - void add_environ (const char *environ) + void add_environ (const char *environment) { if (!environs) environs = g_ptr_array_new (); - g_ptr_array_add (environs, g_strdup (environ)); + g_ptr_array_add (environs, g_strdup (environment)); } void free_later (char *p) {