diff options
| author | Michael Forney | 2021-05-26 05:55:56 +0200 |
|---|---|---|
| committer | Laurent Vivier | 2021-06-20 16:41:47 +0200 |
| commit | 96ff758c6e9cd5a01443ee15afbd0df4f00c37a8 (patch) | |
| tree | b9a4fa9a9f1bd37872a0c8b8fdee187c9837ee51 /scripts | |
| parent | linux-user: Fix incorrect use of feature-test-macros (diff) | |
| download | qemu-96ff758c6e9cd5a01443ee15afbd0df4f00c37a8.tar.gz qemu-96ff758c6e9cd5a01443ee15afbd0df4f00c37a8.tar.xz qemu-96ff758c6e9cd5a01443ee15afbd0df4f00c37a8.zip | |
linux-user: Use public sigev_notify_thread_id member if available
_sigev_un._tid is an internal glibc field and is not available on
musl libc. The sigevent(7) man page and Linux UAPI headers both use
sigev_notify_thread_id as a public way to access this field.
musl libc supports this field since 1.2.2[0], and glibc plans to
add support as well[1][2].
If sigev_notify_thread_id is not available, fall back to _sigev_un._tid
as before.
[0] http://git.musl-libc.org/cgit/musl/commit/?id=7c71792e87691451f2a6b76348e83ad1889f1dcb
[1] https://www.openwall.com/lists/musl/2019/08/01/5
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=27417
Signed-off-by: Michael Forney <mforney@mforney.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210526035556.7931-1-mforney@mforney.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
