diff options
| author | Fenrir <[email protected]> | 2018-02-11 15:08:01 -0700 |
|---|---|---|
| committer | FenrirWolf <[email protected]> | 2018-02-11 15:20:46 -0700 |
| commit | dcccdcc09022605a978eec0a239c6a24569bbd46 (patch) | |
| tree | 7bf5fc916cadfc93c2dc854b77b52f7d8506995e /ctr-std/src/sys | |
| parent | Update travis config (diff) | |
| download | ctru-rs-dcccdcc09022605a978eec0a239c6a24569bbd46.tar.xz ctru-rs-dcccdcc09022605a978eec0a239c6a24569bbd46.zip | |
Filter out glibc symbols
we're not glibc and these caused a linker error when building `std` in debug mode
Diffstat (limited to 'ctr-std/src/sys')
| -rw-r--r-- | ctr-std/src/sys/unix/net.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctr-std/src/sys/unix/net.rs b/ctr-std/src/sys/unix/net.rs index b9b1a39..8a17786 100644 --- a/ctr-std/src/sys/unix/net.rs +++ b/ctr-std/src/sys/unix/net.rs @@ -361,6 +361,7 @@ impl IntoInner<c_int> for Socket { // res_init unconditionally, we call it only when we detect we're linking // against glibc version < 2.26. (That is, when we both know its needed and // believe it's thread-safe). +#[cfg(target_env = "gnu")] pub fn res_init_if_glibc_before_2_26() -> io::Result<()> { // If the version fails to parse, we treat it the same as "not glibc". if let Some(Ok(version_str)) = glibc_version_cstr().map(CStr::to_str) { |