Skip to content

Commit 8cc3c72

Browse files
wesleywisermyl7
authored andcommitted
Update libc-test/build.rs testing for musl 1.2.3 symbols
1 parent 32de074 commit 8cc3c72

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libc-test/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3502,6 +3502,10 @@ fn test_linux(target: &str) {
35023502

35033503
// typedefs don't need any keywords
35043504
t if t.ends_with("_t") => t.to_string(),
3505+
3506+
// In MUSL, `flock64` is a typedef to `flock` and `stat64` is a typedef to `stat`.
3507+
"flock64" | "stat64" if musl => format!("struct {}", ty),
3508+
35053509
// put `struct` in front of all structs:.
35063510
t if is_struct => format!("struct {}", t),
35073511
// put `union` in front of all unions:
@@ -3858,6 +3862,9 @@ fn test_linux(target: &str) {
38583862
// - these constants are used by the glibc implementation.
38593863
n if musl && n.contains("__SIZEOF_PTHREAD") => true,
38603864

3865+
// FIXME: ctest reports incorrect values for both Rust/libc and C/musl.
3866+
"IPC_STAT" if musl => true,
3867+
38613868
// FIXME: It was extended to 4096 since glibc 2.31 (Linux 5.4).
38623869
// We should do so after a while.
38633870
"SOMAXCONN" if gnu => true,

0 commit comments

Comments
 (0)