From 0c4b6edf1e648d03b32d173fff79509e2bd566ff Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Sun, 17 Oct 2021 04:03:00 -0500 Subject: [PATCH] DragonFly should use FreeBSD's sigval workaround --- libc-test/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index b7113e36d6ab0..e593e494e0cb0 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1256,6 +1256,9 @@ fn test_dragonflybsd(target: &str) { t if t.ends_with("_t") => t.to_string(), + // sigval is a struct in Rust, but a union in C: + "sigval" => format!("union sigval"), + // put `struct` in front of all structs:. t if is_struct => format!("struct {}", t), @@ -1289,9 +1292,6 @@ fn test_dragonflybsd(target: &str) { cfg.skip_struct(move |ty| { match ty { - // This is actually a union, not a struct - "sigval" => true, - // FIXME: These are tested as part of the linux_fcntl tests since // there are header conflicts when including them with all the other // structs.