about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-02-15 18:23:48 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-02-15 18:23:48 +0100
commit96941c99781e845bfb418a0214c1f3519af1227d (patch)
tree2f7f732c16be0282832d12445f02603f142c62a3 /src/main.c
parentc5a6875de940f296932154be434d2864e0652da8 (diff)
downloadbox64-96941c99781e845bfb418a0214c1f3519af1227d.tar.gz
box64-96941c99781e845bfb418a0214c1f3519af1227d.zip
Fixe builds (non trace and android/termux)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index b3363338..758dc2bd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1335,6 +1335,7 @@ void setupTraceInit()
 
 void setupTraceMapLib(lib_t* maplib)
 {
+#ifdef HAVE_TRACE
     if(!trace_func)
         return;
     char* p = trace_func;
@@ -1379,6 +1380,7 @@ void setupTraceMapLib(lib_t* maplib)
         printf_log(LOG_NONE, "Warning, Symbol to trace (\"%s\") not found. Trying to set trace later\n", p);
         SetTraceEmu(0, 1);  // disabling trace, mostly
     }
+#endif
 }
 
 EXPORTDYN