File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1950,6 +1950,7 @@ fn test_linux(target: &str) {
1950
1950
"syslog.h" ,
1951
1951
"termios.h" ,
1952
1952
"time.h" ,
1953
+ "ucontext.h" ,
1953
1954
"unistd.h" ,
1954
1955
"utime.h" ,
1955
1956
"utmp.h" ,
@@ -1967,10 +1968,6 @@ fn test_linux(target: &str) {
1967
1968
// <execinfo.h> is not supported by musl:
1968
1969
// https://www.openwall.com/lists/musl/2015/04/09/3
1969
1970
[ !musl] : "execinfo.h" ,
1970
- // ucontext_t added a new field as of glibc 2.28; our struct definition is
1971
- // conservative and omits the field, but that means the size doesn't match for newer
1972
- // glibcs
1973
- [ !gnu] : "ucontext.h" ,
1974
1971
}
1975
1972
1976
1973
// Include linux headers at the end:
@@ -2101,6 +2098,11 @@ fn test_linux(target: &str) {
2101
2098
// FIXME: musl version using by mips build jobs 1.0.15 is ancient:
2102
2099
"ifmap" | "ifreq" | "ifconf" if mips32_musl => true ,
2103
2100
2101
+ // ucontext_t added a new field as of glibc 2.28; our struct definition is
2102
+ // conservative and omits the field, but that means the size doesn't match for newer
2103
+ // glibcs (see https://github.com/rust-lang/libc/issues/1410)
2104
+ "ucontext_t" if gnu => true ,
2105
+
2104
2106
_ => false ,
2105
2107
}
2106
2108
} ) ;
You can’t perform that action at this time.
0 commit comments