Skip to content

Commit 2cd7b3b

Browse files
committed
Auto merge of #1288 - red75prime:pr-uclibc-arm, r=gnzlbg
Add arm-uclibc definitions I used `buildroot-2017.05` to build armv7 cross compiler, `uclibc-1.0.24` and `libc-test`. I've executed `libc-test` on armv7-based SoC, using modified `libc-test` to account for the environment. Modified libc-test is not included in this PR because it is too dependent on cross compilation and execution environment.
2 parents 804e8d1 + a06a703 commit 2cd7b3b

File tree

4 files changed

+713
-0
lines changed

4 files changed

+713
-0
lines changed

src/unix/uclibc/arm/align.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
s! {
2+
// FIXME this is actually a union
3+
#[cfg_attr(target_pointer_width = "32",
4+
repr(align(4)))]
5+
#[cfg_attr(target_pointer_width = "64",
6+
repr(align(8)))]
7+
pub struct sem_t {
8+
#[cfg(target_pointer_width = "32")]
9+
__size: [::c_char; 16],
10+
#[cfg(target_pointer_width = "64")]
11+
__size: [::c_char; 32],
12+
}
13+
}

0 commit comments

Comments
 (0)