sync ports with The Matrix

This commit is contained in:
purplerain 2023-08-21 05:20:32 +00:00
parent f75c54fe04
commit a2b482cdca
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64 changed files with 1619 additions and 2432 deletions

View file

@ -0,0 +1,18 @@
Use getthrid(2) as GetTID() implementation.
Index: absl/base/internal/sysinfo.cc
--- absl/base/internal/sysinfo.cc.orig
+++ absl/base/internal/sysinfo.cc
@@ -441,6 +441,12 @@ pid_t GetTID() {
return reinterpret_cast<pid_t>(thread);
}
+#elif defined(__OpenBSD__)
+
+pid_t GetTID() {
+ return getthrid();
+}
+
#else
// Fallback implementation of `GetTID` using `pthread_self`.