diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-06-19 17:03:42 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 11:03:42 +0200 |
| commit | cc9ed708379b9b03e7a9b86f040f06f178606aef (patch) | |
| tree | 457eb7016b811af20d64cf2b7d08aa05c520cc8c /src/os/hostext_linux.c | |
| parent | c96c1ad5ddb977a3723b6d53317f7942546e0779 (diff) | |
| download | box64-cc9ed708379b9b03e7a9b86f040f06f178606aef.tar.gz box64-cc9ed708379b9b03e7a9b86f040f06f178606aef.zip | |
Fixed compilation errors (#2757)
Diffstat (limited to 'src/os/hostext_linux.c')
| -rw-r--r-- | src/os/hostext_linux.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/os/hostext_linux.c b/src/os/hostext_linux.c index 60c6a21f..a2a45db2 100644 --- a/src/os/hostext_linux.c +++ b/src/os/hostext_linux.c @@ -1,3 +1,5 @@ +#include <string.h> + #include "auxval.h" #include "debug.h" @@ -182,7 +184,7 @@ int DetectHostCpuFeatures(void) cpuext.rndr = 1; #endif #elif defined(LA64) - char* p = getenv("BOX64_DYNAREC_LA64NOEXT"); + char* p = GetEnv("BOX64_DYNAREC_LA64NOEXT"); if(p == NULL || p[0] == '0') { uint32_t cpucfg2 = 0, idx = 2; asm volatile("cpucfg %0, %1" : "=r"(cpucfg2) : "r"(idx)); @@ -195,7 +197,7 @@ int DetectHostCpuFeatures(void) } #elif defined(RV64) // private env. variable for the developer ;) - char *p = getenv("BOX64_DYNAREC_RV64NOEXT"); + char *p = GetEnv("BOX64_DYNAREC_RV64NOEXT"); if(p == NULL || strcasecmp(p, "1")) { rv64Detect(); if (p) { |