Skip to content

Commit cf59069

Browse files
committed
Make additional IFF_ constants conditional on processor architecture.
1 parent bbed813 commit cf59069

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,11 @@ 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+
#[cfg(any(target_arch="x86_64", target_arch="x86"))]
624625
pub const IFF_LOWER_UP: ::c_int = 0x10000;
626+
#[cfg(any(target_arch="x86_64", target_arch="x86"))]
625627
pub const IFF_DORMANT: ::c_int = 0x20000;
628+
#[cfg(any(target_arch="x86_64", target_arch="x86"))]
626629
pub const IFF_ECHO: ::c_int = 0x40000;
627630

628631
pub const ST_RDONLY: ::c_ulong = 1;

0 commit comments

Comments
 (0)