Skip to content

Commit 94be6de

Browse files
committed
Android buildfixes.
1 parent d4cbaff commit 94be6de

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

jni/Android.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
LOCAL_PATH := $(call my-dir)
22

33
CORE_DIR := $(LOCAL_PATH)/../src
4-
4+
platform := unix
55
include $(CORE_DIR)/libretro/Makefile.common
66

77
COREFLAGS := -D__LIBRETRO__ -DB2_LIBRETRO_CORE -DHAVE_STRLCPY -DBUILD_TYPE_Final -DBBCMICRO_TRACE $(INCFLAGS)

src/libretro/Makefile.common

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ SOURCES_CPP := \
4646
$(CORE_DIR)/shared/c/mutex.cpp \
4747
$(CORE_DIR)/shared/c/sha1.cpp \
4848
$(CORE_DIR)/shared/c/file_io.cpp \
49+
$(CORE_DIR)/shared/c/path.cpp \
4950
$(CORE_DIR)/beeb/src/DiscGeometry.cpp \
5051
$(CORE_DIR)/beeb/src/DirectDiscImage.cpp \
5152
$(CORE_DIR)/b2/filters.cpp \
5253
$(CORE_DIR)/b2/Remapper.cpp \
5354

5455
SOURCES_C := \
5556
$(CORE_DIR)/6502/c/6502.c \
56-
$(CORE_DIR)/shared/c/path.c \
5757

5858
ifneq (,$(filter osx ios-arm64 tvos-arm64,$(platform)))
5959
SOURCES_CPP += \

src/shared/c/system_linux.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
#include <strings.h>
77
#include <inttypes.h>
88
#include <stdlib.h>
9+
#if !defined(ANDROID)
910
#include <execinfo.h>
1011
#include <uuid/uuid.h>
12+
#endif
1113
#include <shared/debug.h>
1214
#include <fcntl.h>
1315
#include <sys/wait.h>
@@ -212,7 +214,11 @@ char **GetBacktraceSymbols(void *const *addresses, int num_addresses) {
212214

213215
if (num_addresses <= 0) {
214216
/* somebody else's problem... */
217+
#if !defined(ANDROID)
215218
return backtrace_symbols(addresses, num_addresses);
219+
#else
220+
return (char **)NULL;
221+
#endif
216222
}
217223

218224
char *result = NULL;
@@ -340,7 +346,11 @@ char **GetBacktraceSymbols(void *const *addresses, int num_addresses) {
340346

341347
#else
342348

349+
#if !defined(ANDROID)
343350
return backtrace_symbols(addresses, num_addresses);
351+
#else
352+
return (char **)NULL;
353+
#endif
344354

345355
#endif
346356
}

0 commit comments

Comments
 (0)