diff options
author | Francis Nixon <13nixonf@gmail.com> | 2022-08-13 13:41:50 -0400 |
---|---|---|
committer | Francis Nixon <13nixonf@gmail.com> | 2022-08-13 18:24:25 -0400 |
commit | f967994052b23f81589069838a438fb9d32c785b (patch) | |
tree | 9782fa4b114d96114386b153b7a5d9aa266b7cd2 /libc-test/build.rs | |
parent | d9eb95759d8efb814219654b18cb64a98aa00d97 (diff) | |
download | rust-libc-f967994052b23f81589069838a438fb9d32c785b.tar.gz |
Add pthread_sigqueue.
pthread_sigqueue is a gnu libc extension, however I have a use case for it,
hence why I'm adding it.
Diffstat (limited to 'libc-test/build.rs')
-rw-r--r-- | libc-test/build.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 3cc2c135f7..70060f89b7 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3270,6 +3270,12 @@ fn test_linux(target: &str) { // Needs musl 1.2.3 or later. "pthread_getname_np" if musl => true, + // pthread_sigqueue uses sigval, which was initially declared + // as a struct but should be defined as a union. However due + // to the issues described here: https://github.com/rust-lang/libc/issues/2816 + // it can't be changed from struct. + "pthread_sigqueue" => true, + _ => false, } }); |