Commit 1499f10
committed
fix: add HaikuOS support for GetTID() in sysinfo.cc
Add a platform-specific GetTID() implementation for HaikuOS using
Haiku's native find_thread(NULL) API, which returns the current
thread's ID. Without this, HaikuOS falls through to the generic
pthread_self() fallback which causes a compilation failure due to
type incompatibility.
Fixes #19811 parent ea64b6e commit 1499f10
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
466 | 470 | | |
467 | 471 | | |
468 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
469 | 477 | | |
470 | 478 | | |
471 | 479 | | |
| |||
0 commit comments