Skip to content

fix: add HaikuOS support for GetTID() in sysinfo.cc#2037

Open
ShadiBahaa wants to merge 1 commit intoabseil:masterfrom
ShadiBahaa:fix/haiku-os-compilation-1981
Open

fix: add HaikuOS support for GetTID() in sysinfo.cc#2037
ShadiBahaa wants to merge 1 commit intoabseil:masterfrom
ShadiBahaa:fix/haiku-os-compilation-1981

Conversation

@ShadiBahaa
Copy link
Copy Markdown

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 #1981

Thank you for your contribution to Abseil!

Before submitting this PR, please be sure to read our contributing
guidelines
.

If you are a Googler, please also note that it is required that you send us a
Piper CL instead of using the GitHub pull-request process. The code propagation
process will deliver the change to GitHub.

@google-cla
Copy link
Copy Markdown

google-cla bot commented Apr 13, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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 abseil#1981
@ShadiBahaa ShadiBahaa force-pushed the fix/haiku-os-compilation-1981 branch from f0ebc51 to 1499f10 Compare April 13, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: compilation failure on HaikuOS

1 participant