Commit c1d5ce6 1 parent 31423a3 commit c1d5ce6 Copy full SHA for c1d5ce6
File tree 4 files changed +13
-4
lines changed
4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 71
71
) ) ]
72
72
#![ cfg_attr( target_os = "dragonfly" , doc(
73
73
html_root_url = "https://doc.rust-lang.org/libc/x86_64-unknown-dragonfly"
74
+ #![ cfg_attr( all( target_os = "emscripten" , target_arch = "asmjs" ) , doc(
75
+ html_root_url = "https://doc.rust-lang.org/libc/asmjs-unknown-emscripten"
74
76
) ) ]
75
77
76
78
// Attributes needed when building as part of the standard library
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 51
51
pub ai_protocol: :: c_int,
52
52
pub ai_addrlen: socklen_t,
53
53
54
- #[ cfg( target_os = "linux" ) ]
54
+ #[ cfg( any ( target_os = "linux" , target_os = "emscripten" ) ) ]
55
55
pub ai_addr: * mut :: sockaddr,
56
56
57
57
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