Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ const fn clang_args() -> Vec<String> {

#[cfg(not(windows))]
fn bindgen() {
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
let bindings = bindgen::Builder::default()
.header_contents("rtnetlink.h", "#include <linux/rtnetlink.h>")
// Only generate bindings for the following types
.allowlist_type("rtattr|rtmsg|ifinfomsg|nlmsghdr");
#[cfg(not(target_os = "linux"))]
#[cfg(not(any(target_os = "linux", target_os = "android")))]
let bindings = bindgen::Builder::default()
.header_contents(
"route.h",
Expand Down