about summary refs log tree commit diff
path: root/src/rt/rust_run_program.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_run_program.cpp')
-rw-r--r--src/rt/rust_run_program.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_run_program.cpp b/src/rt/rust_run_program.cpp
index 7ccecb2f99a..313ab74995a 100644
--- a/src/rt/rust_run_program.cpp
+++ b/src/rt/rust_run_program.cpp
@@ -168,7 +168,7 @@ rust_run_program(const char* argv[],
         *_NSGetEnviron() = (char **)envp;
     }
     execvp(argv[0], (char * const *)argv);
-#elif __FreeBSD__
+#elif __FreeBSD__ || (defined(__linux__) && defined(RUST_SNAPSHOT))
     if (envp) { environ = (char **)envp; }
     execvp(argv[0], (char * const *)argv);
 #else