Skip to content

Commit

Permalink
unbreak OpenBSD after rust-lang#3714 by properly define RTF_FMASK
Browse files Browse the repository at this point in the history
  • Loading branch information
semarie committed Oct 15, 2024
1 parent a31cb99 commit dbe4b8b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,15 @@ pub const RTF_LOCAL: ::c_int = 0x200000;
pub const RTF_BROADCAST: ::c_int = 0x400000;
pub const RTF_CONNECTED: ::c_int = 0x800000;
pub const RTF_BFD: ::c_int = 0x1000000;
pub const RTF_FMASK: ::c_int = b'\\' as _;
pub const RTF_FMASK: ::c_int = ::RTF_LLINFO
| ::RTF_PROTO1
| ::RTF_PROTO2
| ::RTF_PROTO3
| ::RTF_BLACKHOLE
| ::RTF_REJECT
| ::RTF_STATIC
| ::RTF_MPLS
| ::RTF_BFD;

pub const RTM_VERSION: ::c_int = 5;
pub const RTM_RESOLVE: ::c_int = 0xb;
Expand Down

0 comments on commit dbe4b8b

Please sign in to comment.