Skip to content

Commit ce5b839

Browse files
authored
Fix build PF on platforms other then FreeBSD and macOS (#286)
1 parent 5ba429d commit ce5b839

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/enterprise/firewall/packetfilter/calls.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ impl RuleAddr {
195195
op,
196196
#[cfg(target_os = "macos")]
197197
_padding: [0; 3],
198+
#[cfg(any(target_os = "freebsd", target_os = "macos"))]
198199
neg: 0,
199200
}
200201
}

0 commit comments

Comments
 (0)