about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJack O'Connor <oconnor663@gmail.com>2017-10-01 17:42:18 -0400
committerJack O'Connor <oconnor663@gmail.com>2017-10-05 17:53:10 -0400
commit9602fe1509f2d6ae274a42f61ca5b5cf0c3b9a6b (patch)
tree7ac92b74dcc5190a6a8d6c267e328fca41f6c4a7 /src/rustllvm/RustWrapper.cpp
parent4531131bf328e1372663310bfd45cd354db511ce (diff)
downloadrust-9602fe1509f2d6ae274a42f61ca5b5cf0c3b9a6b.tar.gz
rust-9602fe1509f2d6ae274a42f61ca5b5cf0c3b9a6b.zip
replace libc::res_init with res_init_if_glibc_before_2_26
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions