about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLily <egzozu.be.bas@gmail.com>2023-11-27 19:38:02 +0300
committerGitHub <noreply@github.com>2023-11-27 17:38:02 +0100
commitcbceca3b35af06e65351ed799185ed29c4161225 (patch)
tree1dec085d20790be81587e12884c946030fe576a3
parent436de1c4f55119f1b921e56f00aaada49b9f8c18 (diff)
downloadbox64-cbceca3b35af06e65351ed799185ed29c4161225.tar.gz
box64-cbceca3b35af06e65351ed799185ed29c4161225.zip
[ANDROID] Use TERMUX Define Instead ANDROID (#1093)
-rw-r--r--CMakeLists.txt3
-rw-r--r--src/elfs/elfload_dump.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a2badefe..7e932cbf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -206,6 +206,9 @@ endif()
 if(ANDROID)
     add_definitions(-DANDROID)
 endif()
+if(TERMUX)
+    add_definitions(-DTERMUX)
+endif()
 if(BAD_SIGNAL)
     add_definitions(-DBAD_SIGNAL)
 endif()
diff --git a/src/elfs/elfload_dump.c b/src/elfs/elfload_dump.c
index 593e450d..1730967f 100644
--- a/src/elfs/elfload_dump.c
+++ b/src/elfs/elfload_dump.c
@@ -45,7 +45,7 @@ const char* DumpSection(Elf64_Shdr *s, char* SST) {
         GO(SHT_GNU_ATTRIBUTES);
         GO(SHT_GNU_HASH);
         GO(SHT_GNU_LIBLIST);
-        #ifndef ANDROID
+        #ifndef TERMUX
           GO(SHT_CHECKSUM);
         #endif
         GO(SHT_LOSUNW);