Skip to content

Commit ba770ae

Browse files
committed
Auto merge of #26521 - oli-obk:android-x86-libclibc, r=alexcrichton
All types are same as Android/arm. So I add condition for Android/x86 closes #25475 r? @alexcrichton
2 parents 4b4a672 + 11ec95b commit ba770ae

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

src/liblibc/lib.rs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,12 @@ pub mod types {
441441
pub type intmax_t = i64;
442442
pub type uintmax_t = u64;
443443
}
444-
#[cfg(any(target_arch = "x86",
445-
target_arch = "mips",
444+
#[cfg(any(target_arch = "mips",
446445
target_arch = "mipsel",
447446
target_arch = "powerpc",
448447
target_arch = "le32",
449-
all(target_arch = "arm", not(target_os = "android"))))]
448+
all(any(target_arch = "arm", target_arch = "x86"),
449+
not(target_os = "android"))))]
450450
pub mod posix88 {
451451
pub type off_t = i32;
452452
pub type dev_t = u64;
@@ -458,7 +458,8 @@ pub mod types {
458458
pub type mode_t = u32;
459459
pub type ssize_t = i32;
460460
}
461-
#[cfg(all(target_arch = "arm", target_os = "android"))]
461+
#[cfg(all(any(target_arch = "arm", target_arch = "x86"),
462+
target_os = "android"))]
462463
pub mod posix88 {
463464
pub type off_t = i32;
464465
pub type dev_t = u32;
@@ -473,7 +474,8 @@ pub mod types {
473474
#[cfg(any(target_arch = "x86",
474475
target_arch = "le32",
475476
target_arch = "powerpc",
476-
all(target_arch = "arm", not(target_os = "android"))))]
477+
all(any(target_arch = "arm", target_arch = "x86"),
478+
not(target_os = "android"))))]
477479
pub mod posix01 {
478480
use types::os::arch::c95::{c_short, c_long, time_t};
479481
use types::os::arch::posix88::{dev_t, gid_t, ino_t};
@@ -519,7 +521,8 @@ pub mod types {
519521
pub __size: [u32; 9]
520522
}
521523
}
522-
#[cfg(all(target_arch = "arm", target_os = "android"))]
524+
#[cfg(all(any(target_arch = "arm", target_arch = "x86"),
525+
target_os = "android"))]
523526
pub mod posix01 {
524527
use types::os::arch::c95::{c_uchar, c_uint, c_ulong, time_t};
525528
use types::os::arch::c99::{c_longlong, c_ulonglong};
@@ -5916,13 +5919,15 @@ pub mod funcs {
59165919
use types::os::arch::c95::c_int;
59175920
use types::os::common::posix01::sighandler_t;
59185921

5919-
#[cfg(not(all(target_os = "android", target_arch = "arm")))]
5922+
#[cfg(not(all(target_os = "android", any(target_arch = "arm",
5923+
target_arch = "x86"))))]
59205924
extern {
59215925
pub fn signal(signum: c_int,
59225926
handler: sighandler_t) -> sighandler_t;
59235927
}
59245928

5925-
#[cfg(all(target_os = "android", target_arch = "arm"))]
5929+
#[cfg(all(target_os = "android", any(target_arch = "arm",
5930+
target_arch = "x86")))]
59265931
extern {
59275932
#[link_name = "bsd_signal"]
59285933
pub fn signal(signum: c_int,

0 commit comments

Comments
 (0)