We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9ae8e6 + ae5cf30 commit 5e16276Copy full SHA for 5e16276
libc-test/build.rs
@@ -77,6 +77,7 @@ fn main() {
77
cfg.header("netinet/in.h");
78
cfg.header("netinet/ip.h");
79
cfg.header("netinet/tcp.h");
80
+ cfg.header("resolv.h");
81
cfg.header("pthread.h");
82
cfg.header("dlfcn.h");
83
cfg.header("signal.h");
src/unix/mod.rs
@@ -694,6 +694,8 @@ extern {
694
res: *mut *mut addrinfo) -> ::c_int;
695
pub fn freeaddrinfo(res: *mut addrinfo);
696
pub fn gai_strerror(errcode: ::c_int) -> *const ::c_char;
697
+ #[link_name = "__res_init"]
698
+ pub fn res_init() -> ::c_int;
699
700
#[cfg_attr(target_os = "netbsd", link_name = "__gmtime_r50")]
701
pub fn gmtime_r(time_p: *const time_t, result: *mut tm) -> *mut tm;
0 commit comments