mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
9602fe1509
The previous workaround for gibc's res_init bug is not thread-safe on other implementations of libc, and it can cause crashes. Use a runtime check to make sure we only call res_init when we need to, which is also when it's safe. See https://github.com/rust-lang/rust/issues/43592.