Skip to content

Commit

Permalink
Make additional IFF_ constants conditional on processor architecture.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoraCodes committed Sep 10, 2017
1 parent bbed813 commit cf59069
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/notbsd/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,11 @@ pub const F_TEST: ::c_int = 3;
pub const F_TLOCK: ::c_int = 2;
pub const F_ULOCK: ::c_int = 0;

#[cfg(any(target_arch="x86_64", target_arch="x86"))]
pub const IFF_LOWER_UP: ::c_int = 0x10000;
#[cfg(any(target_arch="x86_64", target_arch="x86"))]
pub const IFF_DORMANT: ::c_int = 0x20000;
#[cfg(any(target_arch="x86_64", target_arch="x86"))]
pub const IFF_ECHO: ::c_int = 0x40000;

pub const ST_RDONLY: ::c_ulong = 1;
Expand Down

0 comments on commit cf59069

Please sign in to comment.