File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ fn main() {
77
77
cfg. header ( "netinet/in.h" ) ;
78
78
cfg. header ( "netinet/ip.h" ) ;
79
79
cfg. header ( "netinet/tcp.h" ) ;
80
+ cfg. header ( "resolv.h" ) ;
80
81
cfg. header ( "pthread.h" ) ;
81
82
cfg. header ( "dlfcn.h" ) ;
82
83
cfg. header ( "signal.h" ) ;
Original file line number Diff line number Diff line change @@ -694,6 +694,14 @@ extern {
694
694
res : * mut * mut addrinfo ) -> :: c_int ;
695
695
pub fn freeaddrinfo ( res : * mut addrinfo ) ;
696
696
pub fn gai_strerror ( errcode : :: c_int ) -> * const :: c_char ;
697
+ #[ cfg_attr( all( unix,
698
+ not( target_os = "macos" ) ,
699
+ not( target_os = "solaris" ) ,
700
+ not( target_env = "musl" )
701
+ ) ,
702
+ link_name = "__res_init" ) ]
703
+ #[ cfg_attr( target_os = "macos" , link_name = "res_9_init" ) ]
704
+ pub fn res_init ( ) -> :: c_int ;
697
705
698
706
#[ cfg_attr( target_os = "netbsd" , link_name = "__gmtime_r50" ) ]
699
707
pub fn gmtime_r ( time_p : * const time_t , result : * mut tm ) -> * mut tm ;
You can’t perform that action at this time.
0 commit comments