File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use crate::sys::time::TimeVal;
66use crate :: { errno:: Errno , Result } ;
77use cfg_if:: cfg_if;
88use libc:: { self , c_int, c_void, socklen_t} ;
9+ #[ cfg( apple_targets) ]
910use std:: ffi:: { CStr , CString } ;
1011use std:: ffi:: { OsStr , OsString } ;
1112use std:: mem:: { self , MaybeUninit } ;
@@ -1774,14 +1775,13 @@ impl<'a> Set<'a, OsString> for SetOsString<'a> {
17741775}
17751776
17761777/// Getter for a `CString` value.
1777- // Hide the docs, because it's an implementation detail of `sockopt_impl!`
1778- #[ doc( hidden) ]
1779- #[ derive( Debug ) ]
1780- pub struct GetCString < T : AsMut < [ u8 ] > > {
1778+ #[ cfg( apple_targets) ]
1779+ struct GetCString < T : AsMut < [ u8 ] > > {
17811780 len : socklen_t ,
17821781 val : MaybeUninit < T > ,
17831782}
17841783
1784+ #[ cfg( apple_targets) ]
17851785impl < T : AsMut < [ u8 ] > > Get < CString > for GetCString < T > {
17861786 fn uninit ( ) -> Self {
17871787 GetCString {
You can’t perform that action at this time.
0 commit comments