about summary refs log tree commit diff stats
path: root/src/os/os_linux.c
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-05-28 23:40:00 +0800
committerGitHub <noreply@github.com>2025-05-28 17:40:00 +0200
commitf1df65d88f05f9712229f6c9323ed20551171286 (patch)
tree584aaf2ff2cd9044f08e9d303acb2f5c507d6289 /src/os/os_linux.c
parent6697c7d2294d3a75ac930f713146327998ba7d32 (diff)
downloadbox64-f1df65d88f05f9712229f6c9323ed20551171286.tar.gz
box64-f1df65d88f05f9712229f6c9323ed20551171286.zip
[WOW64][ENV] Clean up a bit (#2681)
Diffstat (limited to 'src/os/os_linux.c')
-rw-r--r--src/os/os_linux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os/os_linux.c b/src/os/os_linux.c
index a8258db6..570ce2ad 100644
--- a/src/os/os_linux.c
+++ b/src/os/os_linux.c
@@ -7,6 +7,7 @@
 #include <dlfcn.h>
 #include <string.h>
 #include <stdarg.h>
+#include <stdlib.h>
 
 #include "os.h"
 #include "signals.h"
@@ -202,3 +203,8 @@ void PrintfFtrace(int prefix, const char* fmt, ...)
     fflush(ftrace);
     va_end(args);
 }
+
+void* GetEnv(const char* name)
+{
+    return getenv(name);
+}
\ No newline at end of file