From e1baab9dc132f18e13f446df0271a5e46723848d Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Tue, 21 Nov 2017 22:27:15 -0800 Subject: 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. --- src/sys/event.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sys/event.rs') diff --git a/src/sys/event.rs b/src/sys/event.rs index 189f8239..e63fe502 100644 --- a/src/sys/event.rs +++ b/src/sys/event.rs @@ -320,8 +320,8 @@ fn test_struct_kevent() { udata: udata as type_of_udata}; let actual = KEvent::new(0xdeadbeef, EventFilter::EVFILT_READ, - EV_ONESHOT | EV_ADD, - NOTE_CHILD | NOTE_EXIT, + EventFlag::EV_ONESHOT | EventFlag::EV_ADD, + FilterFlag::NOTE_CHILD | FilterFlag::NOTE_EXIT, 0x1337, udata); assert!(expected.ident == actual.ident()); -- cgit v1.2.3