Skip to content

Commit 4e2bf09

Browse files
committed
Remove ugly libc_bitflags hack for mac/ios.
1 parent 15e682c commit 4e2bf09

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/fcntl.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ mod ffi {
2020
pub const F_GET_SEALS: c_int = 1034;
2121
}
2222

23-
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
2423
libc_bitflags!{
2524
pub struct AtFlags: c_int {
2625
AT_SYMLINK_NOFOLLOW;
@@ -31,14 +30,6 @@ libc_bitflags!{
3130
}
3231
}
3332

34-
#[cfg(any(target_os = "ios", target_os = "macos"))]
35-
bitflags!(
36-
pub struct AtFlags: c_int {
37-
// hack because bitflags require one entry
38-
const EMPTY = 0x0;
39-
}
40-
);
41-
4233
pub fn open<P: ?Sized + NixPath>(path: &P, oflag: OFlag, mode: Mode) -> Result<RawFd> {
4334
let fd = try!(path.with_nix_path(|cstr| {
4435
unsafe { libc::open(cstr.as_ptr(), oflag.bits(), mode.bits() as c_uint) }

0 commit comments

Comments
 (0)