File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,8 @@ fn test_apple(target: &str) {
361
361
cfg. skip_roundtrip ( move |s| match s {
362
362
// FIXME: this type has the wrong ABI
363
363
"max_align_t" if i686 => true ,
364
+ // Can't return an array from a C function.
365
+ "uuid_t" => true ,
364
366
_ => false ,
365
367
} ) ;
366
368
cfg. generate ( "../src/lib.rs" , "main.rs" ) ;
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ pub type cpu_subtype_t = integer_t;
29
29
pub type natural_t = u32 ;
30
30
pub type mach_msg_type_number_t = natural_t ;
31
31
pub type kern_return_t = :: c_int ;
32
+ pub type uuid_t = [ u8 ; 16 ] ;
32
33
33
34
pub type posix_spawnattr_t = * mut :: c_void ;
34
35
pub type posix_spawn_file_actions_t = * mut :: c_void ;
@@ -4098,6 +4099,10 @@ extern "C" {
4098
4099
buffersize : u32 ,
4099
4100
) -> :: c_int ;
4100
4101
pub fn proc_libversion ( major : * mut :: c_int , mintor : * mut :: c_int ) -> :: c_int ;
4102
+ /// # Notes
4103
+ ///
4104
+ /// `id` is of type [`uuid_t`].
4105
+ pub fn gethostuuid ( id : * mut u8 , timeout : * const :: timespec ) -> :: c_int ;
4101
4106
}
4102
4107
4103
4108
#[ link( name = "iconv" ) ]
You can’t perform that action at this time.
0 commit comments