Skip to content

Commit 9ac6ad6

Browse files
committed
Adapt to the libc change for IFF_OACTIVE and IFF_RUNNING for FreeBSD.
1 parent 1312cc2 commit 9ac6ad6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/net/if_.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ libc_bitflags!(
6767
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
6868
#[cfg(any(target_os = "android",
6969
target_os = "dragonfly",
70+
target_os = "freebsd",
7071
target_os = "fuchsia",
7172
target_os = "ios",
7273
target_os = "linux",
@@ -75,9 +76,6 @@ libc_bitflags!(
7576
target_os = "openbsd",
7677
target_os = "solaris"))]
7778
IFF_RUNNING;
78-
/// Resources allocated.
79-
#[cfg(any(target_os = "freebsd"))]
80-
IFF_DRV_RUNNING;
8179

8280
// bitmask: 0x80
8381
/// No arp protocol, L2 destination address not set. (see
@@ -99,11 +97,9 @@ libc_bitflags!(
9997
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
10098
#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))]
10199
IFF_MASTER;
102-
/// tx hardware queue is full
103-
#[cfg(target_os = "freebsd")]
104-
IFF_DRV_OACTIVE;
105-
/// transmission in progress
106-
#[cfg(any(target_os = "macos",
100+
/// transmission in progress, tx hardware queue is full
101+
#[cfg(any(target_os = "freebsd",
102+
target_os = "macos",
107103
target_os = "netbsd",
108104
target_os = "openbsd",
109105
target_os = "ios"))]

0 commit comments

Comments
 (0)