Skip to content

Commit 56a04ab

Browse files
neuschaefertgross35
authored andcommitted
libc-test: Account for xktls_session_onedir::gen (freebsd)
1 parent 99e3373 commit 56a04ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc-test/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2471,6 +2471,8 @@ fn test_freebsd(target: &str) {
24712471
"type_" if struct_ == "sockstat" => "type".to_string(),
24722472
"type_" if struct_ == "devstat_match_table" => "type".to_string(),
24732473
"type_" if struct_ == "input_event" => "type".to_string(),
2474+
// Field is named `gennum` in Rust because `gen` is a keyword
2475+
"gennum" if struct_ == "xktls_session_onedir" => "gen".to_string(),
24742476
s => s.to_string(),
24752477
}
24762478
});

0 commit comments

Comments
 (0)