Files
termux-packages/x11-packages/webkit2gtk-4.1/pas_thread_local_cache.c.patch
termux-pacman-bot 21b67f25a2 webkit2gtk-4.1: Do not use pthread_getname_np()
that is not available until API 26.

%ci:no-build
2023-04-09 05:01:29 +00:00

12 lines
468 B
Diff

--- a/Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c
+++ b/Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c
@@ -214,6 +214,8 @@ static void dump_thread_diagnostics(pthr
#endif
#if PAS_PLATFORM(PLAYSTATION)
getname_result = pthread_get_name_np(thread, thread_name);
+#elif defined __ANDROID__ && __ANDROID_API__ < 26
+ getname_result = -1;
#else
getname_result = pthread_getname_np(thread, thread_name, sizeof(thread_name));
#endif