mirror of
https://github.com/open-simh/simh.git
synced 2026-02-26 17:03:56 +00:00
makefile: Support mode Android versions when termux is used
This commit is contained in:
6
makefile
6
makefile
@@ -287,11 +287,11 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||
endif
|
||||
else
|
||||
ifeq (Linux,$(OSTYPE))
|
||||
ifeq (Android,$(shell uname -o))
|
||||
OS_CCDEFS += -D__ANDROID_API__=$(shell getprop ro.build.version.sdk)
|
||||
endif
|
||||
ifneq (lib,$(findstring lib,$(UNSUPPORTED_BUILD)))
|
||||
ifneq (,$(shell if $(TEST) -d /system/lib; then echo systemlib; fi))
|
||||
ifneq (,$(shell uname -a | grep 'aarch64 Android'))
|
||||
OS_CCDEFS += -DCANT_USE_TERMIOS_TCSAFLUSH
|
||||
endif
|
||||
LIBPATH += /system/lib
|
||||
endif
|
||||
ifneq (,$(shell if $(TEST) -d /data/data/com.termux/files/usr/lib; then echo termuxlib; fi))
|
||||
|
||||
@@ -3928,7 +3928,7 @@ return SCPE_OK;
|
||||
|
||||
#else
|
||||
|
||||
#if !defined(CANT_USE_TERMIOS_TCSAFLUSH)
|
||||
#if !defined (__ANDROID_API__) || (__ANDROID_API__ < 26)
|
||||
#define TCSETATTR_ACTION TCSAFLUSH
|
||||
#else
|
||||
#define TCSETATTR_ACTION TCSANOW
|
||||
|
||||
@@ -324,7 +324,7 @@ return (t_offset)fileaddr;
|
||||
|
||||
/* Linux */
|
||||
|
||||
#if defined (__linux) || defined (__linux__) || defined (__hpux) || defined (_AIX)
|
||||
#if ((defined (__linux) || defined (__linux__)) && (!defined (__ANDROID_API__) || (__ANDROID_API__ >= 24))) || defined (__hpux) || defined (_AIX)
|
||||
#define S_SIM_IO_FSEEK_EXT_ 1
|
||||
int sim_fseeko (FILE *st, t_offset xpos, int origin)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user