Skip to content

Commit

Permalink
libc: workaround typo?
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Oct 8, 2023
1 parent a99bad3 commit 5c5c790
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 7 deletions.
5 changes: 5 additions & 0 deletions codegen/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ fn codegen_resources(item_list: &[CfgItem]) {
continue;
}

// FIXME: https://github.com/rust-lang/libc/pull/3325#pullrequestreview-1663168123
if name == "RLIMIT_OFILE" {
continue;
}

if name.starts_with("RLIMIT_") {
ans.push(item);
}
Expand Down
5 changes: 5 additions & 0 deletions codegen/src/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ pub fn collect_resources(item_list: &[CfgItem]) -> Vec<Resource> {
continue;
}

// FIXME: https://github.com/rust-lang/libc/pull/3325#pullrequestreview-1663168123
if name == "RLIMIT_OFILE" {
continue;
}

if let Some(ident) = name.strip_prefix("RLIMIT_") {
ans.push(Resource {
ident: ident.to_owned(),
Expand Down
Loading

0 comments on commit 5c5c790

Please sign in to comment.