diff --git a/libc-test/build/main.rs b/libc-test/build/main.rs index 1f2921bc651f..bc127960f4d2 100755 --- a/libc-test/build/main.rs +++ b/libc-test/build/main.rs @@ -2204,8 +2204,6 @@ fn test_android(t: &Target) { // These are tested as part of the linux_fcntl tests since there are // header conflicts when including them with all the other structs. "termios2" => true, - // 'private' type - "prop_info" => true, // These are tested in the `linux_elf.rs` file. "Elf64_Phdr" | "Elf32_Phdr" => true, @@ -2219,7 +2217,7 @@ fn test_android(t: &Target) { "sockaddr_vm" => true, // Extern types - "DIR" | "FILE" | "fpos_t" | "timezone" => true, + "DIR" | "FILE" | "fpos_t" | "timezone" | "prop_info" => true, _ => false, } diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index 2317fec21002..c32e49640abc 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -63,6 +63,10 @@ pub type eventfd_t = u64; pub type posix_spawn_file_actions_t = *mut c_void; pub type posix_spawnattr_t = *mut c_void; +extern_ty! { + pub type prop_info; +} + s! { pub struct stack_t { pub ss_sp: *mut c_void, @@ -597,12 +601,6 @@ s! { pub absflat: [crate::__s32; ABS_CNT], } - pub struct prop_info { - __name: [c_char; 32], - __serial: c_uint, - __value: [c_char; 92], - } - // linux/futex.h pub struct futex_waitv { pub val: crate::__u64,