File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -4095,6 +4095,49 @@ fn test_linux(target: &str) {
40954095
40964096 cfg. skip_const ( move |constant| {
40974097 let name = constant. ident ( ) ;
4098+ if gnu {
4099+ // FIXME(#4692): these values changed in glibc 2.42. We can't update unless we also
4100+ // switch to the new symbols.
4101+ let baud_mismatch = [
4102+ "SW_MAX" ,
4103+ "SW_CNT" ,
4104+ "EXTA" ,
4105+ "EXTB" ,
4106+ "B50" ,
4107+ "B75" ,
4108+ "B110" ,
4109+ "B134" ,
4110+ "B150" ,
4111+ "B200" ,
4112+ "B300" ,
4113+ "B600" ,
4114+ "B1200" ,
4115+ "B1800" ,
4116+ "B2400" ,
4117+ "B4800" ,
4118+ "B9600" ,
4119+ "B19200" ,
4120+ "B38400" ,
4121+ "B57600" ,
4122+ "B115200" ,
4123+ "B230400" ,
4124+ "B460800" ,
4125+ "B500000" ,
4126+ "B576000" ,
4127+ "B921600" ,
4128+ "B1000000" ,
4129+ "B1152000" ,
4130+ "B1500000" ,
4131+ "B2000000" ,
4132+ "B2500000" ,
4133+ "B3000000" ,
4134+ "B3500000" ,
4135+ "B4000000"
4136+ ] ;
4137+ if baud_mismatch. contains ( & name) {
4138+ return true ;
4139+ }
4140+ }
40984141 if !gnu {
40994142 // Skip definitions from the kernel on non-glibc Linux targets.
41004143 // They're libc-independent, so we only need to check them on one
You can’t perform that action at this time.
0 commit comments