diff options
author | Tom Parker-Shemilt <palfrey@tevp.net> | 2018-11-20 23:50:37 +0000 |
---|---|---|
committer | Tom Parker-Shemilt <palfrey@tevp.net> | 2018-11-20 23:50:37 +0000 |
commit | 9c6714e54ddc1477c2b3bac79ca7c95df1093110 (patch) | |
tree | 0f50842487872ebbb6f7b628c080e07ba7ccebb6 /libc-test/build.rs | |
parent | 9828bd999ee799b5275d8b986a4f0c40ffa23f70 (diff) | |
download | rust-libc-9c6714e54ddc1477c2b3bac79ca7c95df1093110.tar.gz |
Define _WITH_GETLINE for FreeBSD so we can move getline into general Unix
Diffstat (limited to 'libc-test/build.rs')
-rw-r--r-- | libc-test/build.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 90c5640ba1..7250290c72 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -42,6 +42,8 @@ fn main() { cfg.define("_XOPEN_SOURCE", Some("700")); cfg.define("__EXTENSIONS__", None); cfg.define("_LCONV_C99", None); + } else if freebsd { + cfg.define("_WITH_GETLINE", None); } // Android doesn't actually have in_port_t but it's much easier if we |