Skip to content

Commit bbed813

Browse files
committed
Move extra IFF_ definitions to be Linux only.
1 parent f533729 commit bbed813

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,10 @@ pub const F_TEST: ::c_int = 3;
621621
pub const F_TLOCK: ::c_int = 2;
622622
pub const F_ULOCK: ::c_int = 0;
623623

624+
pub const IFF_LOWER_UP: ::c_int = 0x10000;
625+
pub const IFF_DORMANT: ::c_int = 0x20000;
626+
pub const IFF_ECHO: ::c_int = 0x40000;
627+
624628
pub const ST_RDONLY: ::c_ulong = 1;
625629
pub const ST_NOSUID: ::c_ulong = 2;
626630
pub const ST_NODEV: ::c_ulong = 4;

src/unix/notbsd/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,6 @@ pub const IFF_MULTICAST: ::c_int = 0x1000;
446446
pub const IFF_PORTSEL: ::c_int = 0x2000;
447447
pub const IFF_AUTOMEDIA: ::c_int = 0x4000;
448448
pub const IFF_DYNAMIC: ::c_int = 0x8000;
449-
pub const IFF_LOWER_UP: ::c_int = 0x10000;
450-
pub const IFF_DORMANT: ::c_int = 0x20000;
451-
pub const IFF_ECHO: ::c_int = 0x40000;
452449

453450
pub const SOL_IP: ::c_int = 0;
454451
pub const SOL_TCP: ::c_int = 6;

src/unix/uclibc/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,6 @@ pub const IFF_MULTICAST: ::c_int = 0x1000;
613613
pub const IFF_PORTSEL: ::c_int = 0x2000;
614614
pub const IFF_AUTOMEDIA: ::c_int = 0x4000;
615615
pub const IFF_DYNAMIC: ::c_int = 0x8000;
616-
pub const IFF_LOWER_UP: ::c_int = 0x10000;
617-
pub const IFF_DORMANT: ::c_int = 0x20000;
618-
pub const IFF_ECHO: ::c_int = 0x40000;
619-
620616

621617
pub const SOL_IP: ::c_int = 0;
622618
pub const SOL_TCP: ::c_int = 6;

0 commit comments

Comments
 (0)