Merge "Do not init slirp proxy when op_http_proxy is null" into emu-master-dev
diff --git a/android-qemu2-glue/main.cpp b/android-qemu2-glue/main.cpp
index 8dc27b5..17afd2d 100755
--- a/android-qemu2-glue/main.cpp
+++ b/android-qemu2-glue/main.cpp
@@ -715,7 +715,7 @@
     // Set env var to "on" for Intel PMU if the feature is enabled.
     // cpu.c will then read that.
     if (android::featurecontrol::isEnabled(android::featurecontrol::IntelPerformanceMonitoringUnit)) {
-        setenv("ANDROID_EMU_FEATURE_IntelPerformanceMonitoringUnit", "on", 1);
+        System::get()->envSet("ANDROID_EMU_FEATURE_IntelPerformanceMonitoringUnit", "on");
     }
 
 #if defined(TARGET_X86_64) || defined(TARGET_I386)