[all-commits] [llvm/llvm-project] 5e416b: Define _LIBCPP_HAS_TIMESPEC_GET for FreeBSD when a...

Dimitry Andric via All-commits all-commits at lists.llvm.org
Wed Jan 29 23:01:12 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e416ba943b7c737deb8eca62756f7b4fa925845
      https://github.com/llvm/llvm-project/commit/5e416ba943b7c737deb8eca62756f7b4fa925845
  Author: Dimitry Andric <dimitry at andric.com>
  Date:   2020-01-30 (Thu, 30 Jan 2020)

  Changed paths:
    M libcxx/include/__config

  Log Message:
  -----------
  Define _LIBCPP_HAS_TIMESPEC_GET for FreeBSD when appropriate

Summary:
FreeBSD got `timespec_get` support somewhere in the 12.x timeframe, but
the C++ version check in its system headers was written incorrectly.
This has now been fixed for both FreeBSD 13 and 12.

Add checks for the corresponding `__FreeBSD_version` values, to define
`_LIBCPP_HAS_TIMESPEC_GET` when the function is supported.

Reviewers: emaste, EricWF, ldionne, mclow.lists

Reviewed By: ldionne

Subscribers: arichardson, krytarowski, christof, dexonsmith, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D71522




More information about the All-commits mailing list