GNOME Bugzilla – Bug 721059
g_subprocess_launcher_set_environ vs "environ"
Last modified: 2013-12-26 12:38:31 UTC
After preprocessing the prototype looks like this for me: extern void g_subprocess_launcher_set_environ (GSubprocessLauncher *self, gchar **(*__p__environ())); That is a K&R prototype, not an ANSI prototype. And it doesn't mean what glib wants it to mean. Can we call the second argument something other than "environ", please? C99 doesn't define it, but there is a long tradition of libc owning that identifier. This is with mingw/linuxmint, but there problem could hit any environment.
There also priv->environ in gio/gapplicationcommandline.c
Sounds like a good idea. Care to do a patch? 'envp' would be a reasonable choice for a new name.
Patch at https://git.gnome.org/browse/gnumeric/tree/tools/win32/patches/glib-gsubprocesslauncher.patch
https://git.gnome.org/browse/glib/commit/?id=c26c557908fe3083e9470b2a191cd53dc907138d