diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-10-31 16:44:29 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2016-11-09 18:45:00 -0800 |
commit | f9323d1a0a9afae5e017d2ec47e56c75ea268e2c (patch) | |
tree | 57f0c352094a6cc404df3724856a7f115e4bd2d2 /src/lib.rs | |
parent | b347e64ab1599b9f33a4dd2bf41e4203c59d20a6 (diff) | |
download | rust-libc-f9323d1a0a9afae5e017d2ec47e56c75ea268e2c.tar.gz |
Use `#[link(cfg(..))]` in preparation for libstd
In preparation for rust-lang/rust#37545 this is adding the appropriate
directives to libc to get included.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index dcc4791f9a..2bc26aad61 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,6 +75,7 @@ // Attributes needed when building as part of the standard library #![cfg_attr(stdbuild, feature(no_std, core, core_slice_ext, staged_api, custom_attribute, cfg_target_vendor))] +#![cfg_attr(stdbuild, feature(link_cfg))] #![cfg_attr(stdbuild, no_std)] #![cfg_attr(stdbuild, staged_api)] #![cfg_attr(stdbuild, allow(warnings))] |