diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-12-17 10:50:53 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-12-17 10:50:53 -0800 |
commit | 37b71423c99b8404a4117b412c625e4ca72fc478 (patch) | |
tree | a6b36c32d309f14848c0309b47748ef86d51f149 /src/lib.rs | |
parent | 3e1791cf9825944e6a838253eccec94465e0b51b (diff) | |
download | rust-libc-37b71423c99b8404a4117b412c625e4ca72fc478.tar.gz |
Fix compiles on various BSDs
Also document them to prevent future regressions
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index 02bf9e69ff..3f3133fafc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,9 +54,24 @@ #![cfg_attr(all(windows, target_arch = "x86", target_env = "msvc"), doc( html_root_url = "https://doc.rust-lang.org/libc/i686-pc-windows-msvc" ))] -#![cfg_attr(all(target_os = "android"), doc( +#![cfg_attr(target_os = "android", doc( html_root_url = "https://doc.rust-lang.org/libc/arm-linux-androideabi" ))] +#![cfg_attr(target_os = "freebsd", doc( + html_root_url = "https://doc.rust-lang.org/libc/x86_64-unknown-freebsd" +))] +#![cfg_attr(target_os = "openbsd", doc( + html_root_url = "https://doc.rust-lang.org/libc/x86_64-unknown-openbsd" +))] +#![cfg_attr(target_os = "bitrig", doc( + html_root_url = "https://doc.rust-lang.org/libc/x86_64-unknown-bitrig" +))] +#![cfg_attr(target_os = "netbsd", doc( + html_root_url = "https://doc.rust-lang.org/libc/x86_64-unknown-netbsd" +))] +#![cfg_attr(target_os = "dragonfly", doc( + html_root_url = "https://doc.rust-lang.org/libc/x86_64-unknown-dragonfly" +))] // Attributes needed when building as part of the standard library #![cfg_attr(stdbuild, feature(no_std, core, core_slice_ext, staged_api, custom_attribute))] |