[all-commits] [llvm/llvm-project] 142bdb: [libcxx] Re-include <osreldate.h> in __config for ...
Dimitry Andric via All-commits
all-commits at lists.llvm.org
Sun Jan 7 08:00:05 PST 2024
Branch: refs/heads/users/DimitryAndric/libcxx-freebsd-osreldate
Home: https://github.com/llvm/llvm-project
Commit: 142bdbc8f3cdef5f55a7941139e8c96b9269f886
https://github.com/llvm/llvm-project/commit/142bdbc8f3cdef5f55a7941139e8c96b9269f886
Author: Dimitry Andric <dimitry at andric.com>
Date: 2024-01-07 (Sun, 07 Jan 2024)
Changed paths:
M libcxx/include/__config
Log Message:
-----------
[libcxx] Re-include <osreldate.h> in __config for FreeBSD
In 0a97720d0197 some changes were made to `__config` for assuming that
`__BYTE_ORDER__` is always present.
However, this deleted a `<osreldate.h>` include for FreeBSD, which is
required to get the value of `__FreeBSD_version`, and that is used later
in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
enabled.
Include `<osreldate.h>` just after the other includes used for feature
detection, to fix this.
Note that when FreeBSD 13 is EOLed, this can be removed, as then all
supported FreeBSD versions will no longer have `gets()`.
More information about the All-commits
mailing list