Skip to content

Commit

Permalink
Auto merge of rust-lang#710 - marmistrz:android, r=alexcrichton
Browse files Browse the repository at this point in the history
Port rust-lang#672 and rust-lang#686 to Android.

I'd rather avoid the duplication, but this is discussed in rust-lang#707.
  • Loading branch information
bors committed Aug 4, 2017
2 parents 3c2bd77 + 4702102 commit ecd468e
Show file tree
Hide file tree
Showing 4 changed files with 775 additions and 3 deletions.
3 changes: 3 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ fn main() {
cfg.header("arpa/inet.h");
cfg.header("xlocale.h");
cfg.header("utmp.h");
if i686 || x86_64 {
cfg.header("sys/reg.h");
}
} else if !windows {
cfg.header("glob.h");
cfg.header("ifaddrs.h");
Expand Down
1 change: 0 additions & 1 deletion src/unix/notbsd/android/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ pub const PTRACE_SETFPREGS: ::c_int = 15;
pub const PTRACE_GETREGS: ::c_int = 12;
pub const PTRACE_SETREGS: ::c_int = 13;

pub const SYS_gettid: ::c_long = 224;
pub const PTHREAD_MUTEX_INITIALIZER: pthread_mutex_t = pthread_mutex_t {
value: 0,
};
Expand Down
Loading

0 comments on commit ecd468e

Please sign in to comment.