diff options
author | Danek Duvall <danek.duvall@oracle.com> | 2017-01-03 15:06:58 -0800 |
---|---|---|
committer | Danek Duvall <danek.duvall@oracle.com> | 2017-01-03 15:06:58 -0800 |
commit | 14eaaf8d37f2a45a2ba834a4ce1ced863003a12d (patch) | |
tree | 8ee2d284957d7d6c4edea680df66323ea9c6a48e | |
parent | 8c0595d20f4d95e7ccbf565a930f54881bd527a9 (diff) | |
download | rust-libc-14eaaf8d37f2a45a2ba834a4ce1ced863003a12d.tar.gz |
Fix a brown-paper-bag bug: botched constant types.
-rw-r--r-- | src/unix/solaris/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unix/solaris/mod.rs b/src/unix/solaris/mod.rs index 1372ce6ae6..3810fc57f2 100644 --- a/src/unix/solaris/mod.rs +++ b/src/unix/solaris/mod.rs @@ -812,9 +812,9 @@ pub const LOCK_EX: ::c_int = 2; pub const LOCK_NB: ::c_int = 4; pub const LOCK_UN: ::c_int = 8; -pub const F_RDLCK: ::c_int = 1; -pub const F_WRLCK: ::c_int = 2; -pub const F_UNLCK: ::c_int = 3; +pub const F_RDLCK: ::c_short = 1; +pub const F_WRLCK: ::c_short = 2; +pub const F_UNLCK: ::c_short = 3; pub const O_SYNC: ::c_int = 16; pub const O_NONBLOCK: ::c_int = 128; |