Skip to content

Commit

Permalink
[ANDROID] Use TERMUX Define Instead ANDROID (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Nov 27, 2023
1 parent 436de1c commit cbceca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/elfs/elfload_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cbceca3

Please sign in to comment.