Commit b2b2fd7 1 parent 7646277 commit b2b2fd7 Copy full SHA for b2b2fd7
File tree 2 files changed +8
-0
lines changed
src/unix/linux_like/android
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1613,6 +1613,7 @@ fn test_android(target: &str) {
1613
1613
"sched.h" ,
1614
1614
"semaphore.h" ,
1615
1615
"signal.h" ,
1616
+ "spawn.h" ,
1616
1617
"stddef.h" ,
1617
1618
"stdint.h" ,
1618
1619
"stdio.h" ,
@@ -1767,6 +1768,9 @@ fn test_android(target: &str) {
1767
1768
1768
1769
// These are tested in the `linux_elf.rs` file.
1769
1770
"Elf64_Phdr" | "Elf32_Phdr" => true ,
1771
+ // These are intended to be opaque
1772
+ "posix_spawn_file_actions_t" => true ,
1773
+ "posix_spawnattr_t" => true ,
1770
1774
_ => false ,
1771
1775
}
1772
1776
} ) ;
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ pub type Elf64_Xword = u64;
48
48
49
49
pub type eventfd_t = u64 ;
50
50
51
+ // these structs sit behind a heap allocation on Android
52
+ pub type posix_spawn_file_actions_t = * mut :: c_void ;
53
+ pub type posix_spawnattr_t = * mut :: c_void ;
54
+
51
55
s ! {
52
56
pub struct stack_t {
53
57
pub ss_sp: * mut :: c_void,
You can’t perform that action at this time.
0 commit comments