Skip to content

Commit

Permalink
DragonFly should use FreeBSD's sigval workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
rtzoeller committed Oct 17, 2021
1 parent 3bf3d67 commit 0c4b6ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 0c4b6ed

Please sign in to comment.