File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,9 @@ cfg_if! {
124
124
} else if #[ cfg( target_env = "musl" ) ] {
125
125
#[ link( name = "c" , kind = "static" ) ]
126
126
extern { }
127
+ } else if #[ cfg( target_os = "emscripten" ) ] {
128
+ #[ link( name = "c" ) ]
129
+ extern { }
127
130
} else if #[ cfg( any( target_os = "macos" ,
128
131
target_os = "ios" ,
129
132
target_os = "android" ,
@@ -664,7 +667,9 @@ extern {
664
667
}
665
668
666
669
cfg_if ! {
667
- if #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ] {
670
+ if #[ cfg( any( target_os = "linux" ,
671
+ target_os = "android" ,
672
+ target_os = "emscripten" ) ) ] {
668
673
mod notbsd;
669
674
pub use self :: notbsd:: * ;
670
675
} else if #[ cfg( any( target_os = "macos" ,
Original file line number Diff line number Diff line change @@ -511,7 +511,8 @@ extern {
511
511
}
512
512
513
513
cfg_if ! {
514
- if #[ cfg( target_env = "musl" ) ] {
514
+ if #[ cfg( any( target_env = "musl" ,
515
+ target_os = "emscripten" ) ) ] {
515
516
mod musl;
516
517
pub use self :: musl:: * ;
517
518
} else if #[ cfg( any( target_arch = "mips" , target_arch = "mipsel" ) ) ] {
Original file line number Diff line number Diff line change 50
50
pub ai_protocol: :: c_int,
51
51
pub ai_addrlen: socklen_t,
52
52
53
- #[ cfg( target_os = "linux" ) ]
53
+ #[ cfg( any ( target_os = "linux" , target_os = "emscripten" ) ) ]
54
54
pub ai_addr: * mut :: sockaddr,
55
55
56
56
pub ai_canonname: * mut c_char,
@@ -610,7 +610,8 @@ extern {
610
610
}
611
611
612
612
cfg_if ! {
613
- if #[ cfg( target_os = "linux" ) ] {
613
+ if #[ cfg( any( target_os = "linux" ,
614
+ target_os = "emscripten" ) ) ] {
614
615
mod linux;
615
616
pub use self :: linux:: * ;
616
617
} else if #[ cfg( target_os = "android" ) ] {
You can’t perform that action at this time.
0 commit comments