[util] Fix Windows build

Windows headers define `environ`.
This commit is contained in:
Khaled Hosny 2025-03-27 03:12:15 +02:00
parent 93288a1ced
commit a6f563247e

View file

@ -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) {