From cc9ed708379b9b03e7a9b86f040f06f178606aef Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Thu, 19 Jun 2025 17:03:42 +0800 Subject: Fixed compilation errors (#2757) --- src/os/hostext_linux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/os/hostext_linux.c') 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 + #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) { -- cgit 1.4.1