devel/adb: new port

This commit is contained in:
c0dev0id
2026-07-08 11:08:05 +02:00
parent a91ecb0f1d
commit 8813f7e720
28 changed files with 786 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
Index: vendor/libbase/threads.cpp
--- vendor/libbase/threads.cpp.orig
+++ vendor/libbase/threads.cpp
@@ -37,6 +37,8 @@ uint64_t GetThreadId() {
uint64_t tid;
pthread_threadid_np(NULL, &tid);
return tid;
+#elif defined(__OpenBSD__)
+ return (uint64_t)getthrid();
#elif defined(__linux__)
return syscall(__NR_gettid);
#elif defined(_WIN32)