diff options
author | Laurence Tratt <laurie@tratt.net> | 2015-07-12 19:15:36 +0059 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-07-13 12:29:00 -0700 |
commit | a384b1d7be2d634c4a564e70c77af3a466782f75 (patch) | |
tree | ff1cd1788bdaaa651c413a49c176bf6e2265489c | |
parent | c20401b51c2b54c1687b6c30edf20feb3e5eb411 (diff) | |
download | nix-a384b1d7be2d634c4a564e70c77af3a466782f75.zip |
Remove import on those platforms where it is unused.
-rw-r--r-- | src/sys/socket/consts.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sys/socket/consts.rs b/src/sys/socket/consts.rs index 01dacb28..00007480 100644 --- a/src/sys/socket/consts.rs +++ b/src/sys/socket/consts.rs @@ -99,7 +99,12 @@ mod os { // Not all of these constants exist on freebsd #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "ios", target_os = "openbsd"))] mod os { + #[cfg(any(target_os = "macos", + target_os = "ios", + target_os = "freebsd"))] use libc::{self, c_int, uint8_t}; + #[cfg(any(target_os = "openbsd"))] + use libc::{c_int, uint8_t}; pub const AF_UNIX: c_int = 1; pub const AF_LOCAL: c_int = AF_UNIX; |