On Fri, Sep 23, 2022 at 6:59 AM wrote: > > From: Sören Tempel > > Tested on x86_64 Arch Linux (glibc) and Alpine Linux (musl libc). > > 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. > > This makes go_signal compatible with musl libc. > > See: https://sourceware.org/bugzilla/show_bug.cgi?id=27417 Thanks. Committed with some changes, as appended. Sorry for the delay. Ian