|
| 1 | +--- a/dom/media/systemservices/VideoEngine.cpp |
| 2 | ++++ b/dom/media/systemservices/VideoEngine.cpp |
| 3 | +@@ -30,7 +30,7 @@ |
| 4 | + #define LOG(args) MOZ_LOG(gVideoEngineLog, mozilla::LogLevel::Debug, args) |
| 5 | + #define LOG_ENABLED() MOZ_LOG_TEST(gVideoEngineLog, mozilla::LogLevel::Debug) |
| 6 | + |
| 7 | +-#if defined(ANDROID) |
| 8 | ++#if defined(ANDROID) && !defined(__TERMUX__) |
| 9 | + int VideoEngine::SetAndroidObjects() { |
| 10 | + LOG(("%s", __PRETTY_FUNCTION__)); |
| 11 | + |
| 12 | +--- a/ipc/chromium/src/base/lock_impl_posix.cc |
| 13 | ++++ b/ipc/chromium/src/base/lock_impl_posix.cc |
| 14 | +@@ -22,7 +22,7 @@ |
| 15 | + // Lock::PriorityInheritanceAvailable still must be checked as the code may |
| 16 | + // compile but the underlying platform still may not correctly support priority |
| 17 | + // inheritance locks. |
| 18 | +-#if defined(ANDROID) |
| 19 | ++#if defined(ANDROID) || defined(__TERMUX__) |
| 20 | + # define PRIORITY_INHERITANCE_LOCKS_POSSIBLE() 0 |
| 21 | + #else |
| 22 | + # define PRIORITY_INHERITANCE_LOCKS_POSSIBLE() 1 |
| 23 | +--- a/js/src/ctypes/libffi/src/closures.c |
| 24 | ++++ b/js/src/ctypes/libffi/src/closures.c |
| 25 | +@@ -112,7 +112,7 @@ |
| 26 | + #else /* !NetBSD with PROT_MPROTECT */ |
| 27 | + |
| 28 | + #if !FFI_MMAP_EXEC_WRIT && !FFI_EXEC_TRAMPOLINE_TABLE |
| 29 | +-# if __linux__ && !defined(__ANDROID__) |
| 30 | ++# if __linux__ && !defined(__TERMUX__) |
| 31 | + /* This macro indicates it may be forbidden to map anonymous memory |
| 32 | + with both write and execute permission. Code compiled when this |
| 33 | + option is defined will attempt to map such pages once, but if it |
| 34 | +--- a/memory/build/malloc_decls.h |
| 35 | ++++ b/memory/build/malloc_decls.h |
| 36 | +@@ -39,7 +39,7 @@ |
| 37 | + // consistent declare certain functions as `throw()`, though. |
| 38 | + |
| 39 | + // Bionic and OS X don't seem to care about `throw()`ness. |
| 40 | +-# if defined(ANDROID) || defined(XP_DARWIN) |
| 41 | ++# if defined(__TERMUX__) || defined(XP_DARWIN) |
| 42 | + # undef NOTHROW_MALLOC_DECL |
| 43 | + # define NOTHROW_MALLOC_DECL MALLOC_DECL |
| 44 | + // Some places don't care about the distinction. |
| 45 | +--- a/dom/media/CubebUtils.cpp |
| 46 | ++++ b/dom/media/CubebUtils.cpp |
| 47 | +@@ -57,7 +57,7 @@ |
| 48 | + #define PREF_AUDIOIPC_STACK_SIZE "media.audioipc.stack_size" |
| 49 | + #define PREF_AUDIOIPC_SHM_AREA_SIZE "media.audioipc.shm_area_size" |
| 50 | + |
| 51 | +-#if defined(XP_LINUX) || defined(XP_MACOSX) || defined(XP_WIN) |
| 52 | ++#if (defined(XP_LINUX) && !defined(__TERMUX__)) || defined(XP_MACOSX) || defined(XP_WIN) |
| 53 | + # define MOZ_CUBEB_REMOTING |
| 54 | + #endif |
| 55 | + |
| 56 | +--- a/mozglue/misc/ConditionVariable_posix.cpp |
| 57 | ++++ b/mozglue/misc/ConditionVariable_posix.cpp |
| 58 | +@@ -23,7 +23,7 @@ |
| 59 | + // Android 4.4 or earlier & macOS 10.12 has the clock functions, but not |
| 60 | + // pthread_condattr_setclock. |
| 61 | + #if defined(HAVE_CLOCK_MONOTONIC) && \ |
| 62 | +- !(defined(__ANDROID__) && __ANDROID_API__ < 21) && !defined(__APPLE__) |
| 63 | ++ defined(__TERMUX__) |
| 64 | + # define CV_USE_CLOCK_API |
| 65 | + #endif |
| 66 | + |
| 67 | +--- a/mozglue/misc/StackWalk.cpp |
| 68 | ++++ b/mozglue/misc/StackWalk.cpp |
| 69 | +@@ -692,7 +692,7 @@ |
| 70 | + stackEnd = __libc_stack_end; |
| 71 | + # elif defined(XP_DARWIN) |
| 72 | + stackEnd = pthread_get_stackaddr_np(pthread_self()); |
| 73 | +-# elif defined(ANDROID) |
| 74 | ++# elif defined(__TERMUX__) |
| 75 | + pthread_attr_t sattr; |
| 76 | + pthread_attr_init(&sattr); |
| 77 | + pthread_getattr_np(pthread_self(), &sattr); |
| 78 | +--- a/nsprpub/pr/src/pthreads/ptsynch.c |
| 79 | ++++ b/nsprpub/pr/src/pthreads/ptsynch.c |
| 80 | +@@ -953,7 +953,7 @@ |
| 81 | + #if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) \ |
| 82 | + || (defined(FREEBSD) && __FreeBSD_version < 1200059) \ |
| 83 | + || defined(OPENBSD) || defined(BSDI) \ |
| 84 | +- || defined(DARWIN) |
| 85 | ++ || defined(DARWIN) || defined(__TERMUX__) |
| 86 | + /* union semun is defined by including <sys/sem.h> */ |
| 87 | + #else |
| 88 | + /* according to X/OPEN we have to define it ourselves */ |
0 commit comments