]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Tentatively merge https://github.com/llvm/llvm-project/pull/77242
authorDimitry Andric <dim@FreeBSD.org>
Sun, 7 Jan 2024 16:03:13 +0000 (17:03 +0100)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 6 Apr 2024 20:13:24 +0000 (22:13 +0200)
commit653487bbc8006839d0895811942bb8a2fcdd5aa8
tree5a8a4f374f5704ccfc8239ca32fe7b324fa659ae
parent647cbc5de815c5651677bf8582797f716ec7b48d
Tentatively merge https://github.com/llvm/llvm-project/pull/77242

  [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()`.

PR: 276104
MFC after: 1 month
contrib/llvm-project/libcxx/include/__config