2009-05-20 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Thu, 21 May 2009 00:42:00 +0000 (00:42 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 21 May 2009 00:42:00 +0000 (00:42 -0000)
* aot-runtime.c (mono_aot_init): Use g_getenv to work on systems
without getenv.

svn path=/trunk/mono/; revision=134493

mono/mini/ChangeLog
mono/mini/aot-runtime.c

index b9885cb3a0904fc57afe3b8a69fa0a848babeeae..b27a3411e4ac9b6058a3c91554a841121e38b8e9 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-20  Miguel de Icaza  <miguel@novell.com>
+
+       * aot-runtime.c (mono_aot_init): Use g_getenv to work on systems
+       without getenv.
+
 2009-05-21  Zoltan Varga  <vargaz@gmail.com>
 
        * aot-compiler.c (add_wrappers): Add StructureToPtr/PtrToStructure wrappers.
index aa7608dc6a99046851b51254a9cd943475cf92a1..50d17fa78c2b28ec2e32cb7f2c4983a91b1f5dc1 100644 (file)
@@ -1141,9 +1141,9 @@ mono_aot_init (void)
 
        mono_install_assembly_load_hook (load_aot_module, NULL);
 
-       if (getenv ("MONO_LASTAOT"))
-               mono_last_aot_method = atoi (getenv ("MONO_LASTAOT"));
-       if (getenv ("MONO_AOT_CACHE"))
+       if (g_getenv ("MONO_LASTAOT"))
+               mono_last_aot_method = atoi (g_getenv ("MONO_LASTAOT"));
+       if (g_getenv ("MONO_AOT_CACHE"))
                use_aot_cache = TRUE;
 }