Content-Length: 12771 | pFad | http://fuchsia.googlesource.com/third_party/libcxx/+/41e7283b76a113234f40b72ab3b92644c0f04613
commit | 41e7283b76a113234f40b72ab3b92644c0f04613 | [log] [tgz] |
---|---|---|
author | Dimitry Andric <dimitry@andric.com> | Sat Oct 19 10:59:23 2019 +0000 |
committer | Dimitry Andric <dimitry@andric.com> | Sat Oct 19 10:59:23 2019 +0000 |
tree | fc6e87672605e67e428daaef0ef33674d5fc11b7 | |
parent | 7e5c56366a944ac3a146ba4861537e22d70c7450 [diff] |
Refine check for `_LIBCPP_C_HAS_NO_GETS` on FreeBSD Summary: In D67316 we added `_LIBCPP_C_HAS_NO_GETS` to signal that the C library does not provide `gets()`, and added a test for FreeBSD 13 or higher, using the compiler-defined `__FreeBSD__` macro. Unfortunately this did not work that well for FreeBSD's own CI process, since the gcc compilers used for some architectures define `__FreeBSD__` to match the build host, not the target. Instead, we should use the `__FreeBSD_version` macro from the userland header `<osreldate.h>`, which is more fine-grained. See also <https://reviews.freebsd.org/D22034>. Reviewers: EricWF, mclow.lists, emaste, ldionne Reviewed By: emaste, ldionne Subscribers: dexonsmith, bsdjhb, krytarowski, christof, ldionne, libcxx-commits Differential Revision: https://reviews.llvm.org/D69174 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@375340 91177308-0d34-0410-b5e6-96231b3b80d8
Fetched URL: http://fuchsia.googlesource.com/third_party/libcxx/+/41e7283b76a113234f40b72ab3b92644c0f04613
Alternative Proxies: