Files
gcc-reflection/libgo/runtime
Ian Lance Taylor e73d9fcafb runtime: portable access to sigev_notify_thread_id
Previously, libgo relied on the _sigev_un implementation-specific
field in struct sigevent, which is only available on glibc.
This patch uses the sigev_notify_thread_id macro instead which is
mandated by timer_create(2). In theory, this should work with any libc
implementation for Linux. Unfortunately, there is an open glibc bug
as glibc does not define this macro. For this reason, a glibc-specific
workaround is required. Other libcs (such as musl) define the macro
and don't require the workaround.

See https://sourceware.org/bugzilla/show_bug.cgi?id=27417

This makes libgo compatible with musl libc.

Based on patch by Sören Tempel.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/434755
2022-09-27 09:30:23 -07:00
..
2019-02-01 21:57:36 +00:00
2019-08-28 20:39:32 +00:00
2019-08-28 20:39:32 +00:00
2020-01-21 23:53:22 -08:00
2021-08-12 20:23:07 -07:00
2019-09-06 18:12:46 +00:00
2021-08-12 20:23:07 -07:00
2021-08-13 10:38:36 -07:00