File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3523,6 +3523,10 @@ fn test_linux(target: &str) {
3523
3523
3524
3524
// typedefs don't need any keywords
3525
3525
t if t. ends_with ( "_t" ) => t. to_string ( ) ,
3526
+
3527
+ // In MUSL, `flock64` is a typedef to `flock` and `stat64` is a typedef to `stat`.
3528
+ "flock64" | "stat64" if musl => format ! ( "struct {}" , ty) ,
3529
+
3526
3530
// put `struct` in front of all structs:.
3527
3531
t if is_struct => format ! ( "struct {}" , t) ,
3528
3532
// put `union` in front of all unions:
@@ -3879,6 +3883,9 @@ fn test_linux(target: &str) {
3879
3883
// - these constants are used by the glibc implementation.
3880
3884
n if musl && n. contains ( "__SIZEOF_PTHREAD" ) => true ,
3881
3885
3886
+ // FIXME: ctest reports incorrect values for both Rust/libc and C/musl.
3887
+ "IPC_STAT" if musl => true ,
3888
+
3882
3889
// FIXME: It was extended to 4096 since glibc 2.31 (Linux 5.4).
3883
3890
// We should do so after a while.
3884
3891
"SOMAXCONN" if gnu => true ,
You can’t perform that action at this time.
0 commit comments