diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-11-21 22:27:15 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-12-02 10:46:34 -0800 |
commit | e1baab9dc132f18e13f446df0271a5e46723848d (patch) | |
tree | 3e4e6714d843edc493dfc3cf879d659bbd264e65 /src/mqueue.rs | |
parent | d374a1ecd3f69027a2ce28e87806f459ef3f9105 (diff) | |
download | nix-e1baab9dc132f18e13f446df0271a5e46723848d.zip |
Upgrade to Bitflags 1.0
The libc_bitflags! macro was replaced with a non-recursive one supporting
only public structs. I could not figure out how to make the old macro work
with the upgrade, so I reworked part of the bitflags! macro directly to suit
our needs, much as the original recursive macro was made. There are no uses
of this macro for non-public structs, so this is not a problem for internal code.
Diffstat (limited to 'src/mqueue.rs')
-rw-r--r-- | src/mqueue.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mqueue.rs b/src/mqueue.rs index b4a791c9..4c88045c 100644 --- a/src/mqueue.rs +++ b/src/mqueue.rs @@ -151,7 +151,7 @@ pub fn mq_setattr(mqd: mqd_t, newattr: &MqAttr) -> Result<MqAttr> { /// Returns the old attributes pub fn mq_set_nonblock(mqd: mqd_t) -> Result<(MqAttr)> { let oldattr = try!(mq_getattr(mqd)); - let newattr = MqAttr::new(O_NONBLOCK.bits() as c_long, + let newattr = MqAttr::new(MQ_OFlag::O_NONBLOCK.bits() as c_long, oldattr.mq_attr.mq_maxmsg, oldattr.mq_attr.mq_msgsize, oldattr.mq_attr.mq_curmsgs); |