Skip to content

Commit

Permalink
Readd posix_spawn{_file_actions_t,attr_t} on Android
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
  • Loading branch information
tesuji and japaric committed May 6, 2024
1 parent 2918100 commit 099a948
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3299,6 +3299,7 @@ fn test_vxworks(target: &str) {

fn test_linux(target: &str) {
assert!(target.contains("linux"));
assert!(!target.contains("android"));

// target_env
let gnu = target.contains("gnu");
Expand Down
4 changes: 4 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ pub type Elf64_Xword = u64;

pub type eventfd_t = u64;

// these structs sit behind a heap allocation on Android
pub type posix_spawn_file_actions_t = *mut ::c_void;
pub type posix_spawnattr_t = *mut ::c_void;

s! {
pub struct stack_t {
pub ss_sp: *mut ::c_void,
Expand Down

0 comments on commit 099a948

Please sign in to comment.