Skip to content

Commit adfe283

Browse files
neuschaefertgross35
authored andcommitted
libc-test: Account for xktls_session_onedir::gen (freebsd)
(backport <#4552>) (cherry picked from commit 56a04ab)
1 parent 4cc1bf4 commit adfe283

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
@@ -2585,6 +2585,8 @@ fn test_freebsd(target: &str) {
25852585
"type_" if struct_ == "sockstat" => "type".to_string(),
25862586
"type_" if struct_ == "devstat_match_table" => "type".to_string(),
25872587
"type_" if struct_ == "input_event" => "type".to_string(),
2588+
// Field is named `gennum` in Rust because `gen` is a keyword
2589+
"gennum" if struct_ == "xktls_session_onedir" => "gen".to_string(),
25882590
s => s.to_string(),
25892591
}
25902592
});

0 commit comments

Comments
 (0)