about summary refs log tree commit diff stats
path: root/src/include/debug.h
diff options
context:
space:
mode:
authorptitSeb <seebastien.chev@gmail.com>2023-09-30 20:33:31 +0200
committerptitSeb <seebastien.chev@gmail.com>2023-09-30 20:33:31 +0200
commiteed9ea35f9987f3e28ec87845c064a84f728b56f (patch)
treeca8a1eac5dbce6d0460c97b1c9a6e2073c1c7018 /src/include/debug.h
parenta724725fdf31c6308934b57f8ce8b442d0b1f5d3 (diff)
downloadbox64-eed9ea35f9987f3e28ec87845c064a84f728b56f.tar.gz
box64-eed9ea35f9987f3e28ec87845c064a84f728b56f.zip
[ANDROID] Fix build
Diffstat (limited to 'src/include/debug.h')
-rw-r--r--src/include/debug.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/debug.h b/src/include/debug.h
index 5ff9e194..fa387d42 100644
--- a/src/include/debug.h
+++ b/src/include/debug.h
@@ -119,6 +119,8 @@ void init_malloc_hook(void);
 #define box_calloc      calloc
 #define box_free        free
 #define box_memalign    memalign
+#define box_strdup      strdup
+#define box_realpath    realpath
 #else
 extern size_t(*box_malloc_usable_size)(void*);
 extern void* __libc_malloc(size_t);
@@ -131,8 +133,8 @@ extern void* __libc_memalign(size_t, size_t);
 #define box_calloc      __libc_calloc
 #define box_free        __libc_free
 #define box_memalign    __libc_memalign
-#endif
 extern char* box_strdup(const char* s);
 extern char* box_realpath(const char* path, char* ret);
+#endif
 
 #endif //__DEBUG_H_