File tree 2 files changed +0
-21
lines changed
2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ mod ffi {
20
20
pub const F_GET_SEALS : c_int = 1034 ;
21
21
}
22
22
23
- #[ cfg( not( any( target_os = "ios" , target_os = "macos" ) ) ) ]
24
23
libc_bitflags ! {
25
24
pub struct AtFlags : c_int {
26
25
AT_SYMLINK_NOFOLLOW ;
@@ -31,14 +30,6 @@ libc_bitflags!{
31
30
}
32
31
}
33
32
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
-
42
33
pub fn open < P : ?Sized + NixPath > ( path : & P , oflag : OFlag , mode : Mode ) -> Result < RawFd > {
43
34
let fd = try!( path. with_nix_path ( |cstr| {
44
35
unsafe { libc:: open ( cstr. as_ptr ( ) , oflag. bits ( ) , mode. bits ( ) as c_uint ) }
Original file line number Diff line number Diff line change @@ -90,9 +90,6 @@ pub enum SockProtocol {
90
90
KextControl = libc:: SYSPROTO_CONTROL ,
91
91
}
92
92
93
- // FIXME: Replace these two separate declarations with one once https://github.com/rust-lang-nursery/bitflags/issues/113
94
- // is resolved.
95
- #[ cfg( not( any( target_os = "mac" , target_os = "ios" ) ) ) ]
96
93
libc_bitflags ! {
97
94
/// Additional socket options
98
95
pub struct SockFlag : c_int {
@@ -122,15 +119,6 @@ libc_bitflags!{
122
119
}
123
120
}
124
121
125
- #[ cfg( any( target_os = "mac" , target_os = "ios" ) ) ]
126
- bitflags ! {
127
- /// Additional socket options
128
- pub struct SockFlag : c_int {
129
- /// Empty placeholder
130
- const EMPTY = 0 ;
131
- }
132
- }
133
-
134
122
libc_bitflags ! {
135
123
/// Flags for send/recv and their relatives
136
124
pub struct MsgFlags : libc:: c_int {
You can’t perform that action at this time.
0 commit comments