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 @@ -3502,6 +3502,10 @@ fn test_linux(target: &str) {
3502
3502
3503
3503
// typedefs don't need any keywords
3504
3504
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
+
3505
3509
// put `struct` in front of all structs:.
3506
3510
t if is_struct => format ! ( "struct {}" , t) ,
3507
3511
// put `union` in front of all unions:
@@ -3858,6 +3862,9 @@ fn test_linux(target: &str) {
3858
3862
// - these constants are used by the glibc implementation.
3859
3863
n if musl && n. contains ( "__SIZEOF_PTHREAD" ) => true ,
3860
3864
3865
+ // FIXME: ctest reports incorrect values for both Rust/libc and C/musl.
3866
+ "IPC_STAT" if musl => true ,
3867
+
3861
3868
// FIXME: It was extended to 4096 since glibc 2.31 (Linux 5.4).
3862
3869
// We should do so after a while.
3863
3870
"SOMAXCONN" if gnu => true ,
You can’t perform that action at this time.
0 commit comments