Skip to content

Commit 8014765

Browse files
committed
Fix compile error on x86_64
Signed-off-by: tiann <[email protected]>
1 parent d65b4df commit 8014765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

VirtualApp/lib/src/main/jni/Foundation/fake_dlfcn.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <android/log.h>
2626
#include "fake_dlfcn.h"
2727

28-
#define TAG_NAME "test2:fake_dlfcn"
28+
#define TAG_NAME "fake_dlfcn"
2929

3030
#define log_info(fmt,args...) __android_log_print(ANDROID_LOG_INFO, TAG_NAME, (const char *) fmt, ##args)
3131
#define log_err(fmt,args...) __android_log_print(ANDROID_LOG_ERROR, TAG_NAME, (const char *) fmt, ##args)
@@ -42,7 +42,7 @@
4242
#define Elf_Ehdr Elf32_Ehdr
4343
#define Elf_Shdr Elf32_Shdr
4444
#define Elf_Sym Elf32_Sym
45-
#elif defined(__aarch64__)
45+
#elif defined(__aarch64__) || defined(__x86_64__)
4646
#define Elf_Ehdr Elf64_Ehdr
4747
#define Elf_Shdr Elf64_Shdr
4848
#define Elf_Sym Elf64_Sym

0 commit comments

Comments
 (0)