@@ -206,19 +206,9 @@ pub const PRIO_MAX: ::c_int = 20;
206
206
cfg_if ! {
207
207
if #[ cfg( dox) ] {
208
208
// on dox builds don't pull in anything
209
- } else if #[ cfg( all( not( stdbuild) ,
210
- feature = "use_std" ,
211
- not( any( target_os = "macos" ,
212
- target_os = "ios" )
213
- ) ) ) ] {
209
+ } else if #[ cfg( all( not( stdbuild) , feature = "use_std" ) ) ] {
214
210
// cargo build, don't pull in anything extra as the libstd dep
215
211
// already pulls in all libs.
216
- } else if #[ cfg( all( not( stdbuild) , feature = "use_std" ) ) ] {
217
- // except on macOS and iOS, where we must link with lib resolv
218
- // for res_init, despite libsystem_info including it:
219
- // http://blog.achernya.com/2013/03/os-x-has-silly-libsystem.html
220
- #[ link( name = "resolv" ) ]
221
- extern { }
222
212
} else if #[ cfg( any( all( target_env = "musl" , not( target_arch = "mips" ) ) ) ) ] {
223
213
#[ link( name = "c" , kind = "static" , cfg( target_feature = "crt-static" ) ) ]
224
214
#[ link( name = "c" , cfg( not( target_feature = "crt-static" ) ) ) ]
@@ -233,12 +223,8 @@ cfg_if! {
233
223
#[ link( name = "m" ) ]
234
224
extern { }
235
225
} else if #[ cfg( any( target_os = "macos" ,
236
- target_os = "ios" ) ) ] {
237
- #[ link( name = "c" ) ]
238
- #[ link( name = "m" ) ]
239
- #[ link( name = "resolv" ) ]
240
- extern { }
241
- } else if #[ cfg( any( target_os = "android" ,
226
+ target_os = "ios" ,
227
+ target_os = "android" ,
242
228
target_os = "openbsd" ,
243
229
target_os = "bitrig" ) ) ] {
244
230
#[ link( name = "c" ) ]
0 commit comments