[Mono-dev] Re: r58871 - trunk/mono/mono/metadata

Robert Jordan robertj at gmx.net
Tue Apr 4 14:43:10 EDT 2006


Hey,

May I backport this?

Robert

> Author: miguel
> Date: 2006-03-31 19:14:16 -0500 (Fri, 31 Mar 2006)
> New Revision: 58871
> 
> Modified:
>    trunk/mono/mono/metadata/ChangeLog
>    trunk/mono/mono/metadata/icall.c
> Log:
> 2006-03-31  Miguel de Icaza  <miguel at novell.com>
> 
> 	* icall.c
> 	(ves_icall_System_Environment_InternalSetEnvironmentVariable): Fix
> 	build on pre glib 2.4 systems.
> 
> Modified: trunk/mono/mono/metadata/ChangeLog
> ===================================================================
> --- trunk/mono/mono/metadata/ChangeLog	2006-03-31 23:25:18 UTC (rev 58870)
> +++ trunk/mono/mono/metadata/ChangeLog	2006-04-01 00:14:16 UTC (rev 58871)
> @@ -1,3 +1,9 @@
> +2006-03-31  Miguel de Icaza  <miguel at novell.com>
> +
> +	* icall.c
> +	(ves_icall_System_Environment_InternalSetEnvironmentVariable): Fix
> +	build on pre glib 2.4 systems.
> +
>  2006-03-31  Zoltan Varga  <vargaz at gmail.com>
>  
>  	* icall.c (ves_icall_System_Environment_InternalSetEnvironmentVariable): New icall.
> 
> Modified: trunk/mono/mono/metadata/icall.c
> ===================================================================
> --- trunk/mono/mono/metadata/icall.c	2006-03-31 23:25:18 UTC (rev 58870)
> +++ trunk/mono/mono/metadata/icall.c	2006-04-01 00:14:16 UTC (rev 58871)
> @@ -5542,6 +5542,14 @@
>  	return names;
>  }
>  
> +/*
> + * If your platform lacks setenv/unsetenv, you must upgrade your glib.
> + */
> +#if !GLIB_CHECK_VERSION(2,4,0)
> +#define g_setenv(a,b,c)   setenv(a,b,c)
> +#define g_unsetenv(a,b,c) unsetenv(a,b,c)
> +#endif
> +
>  static void
>  ves_icall_System_Environment_InternalSetEnvironmentVariable (MonoString *name, MonoString *value)
>  {
> 
> _______________________________________________
> Mono-patches maillist  -  Mono-patches at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-patches
> 




More information about the Mono-devel-list mailing list