This is an archive of the discontinued LLVM Phabricator instance.

Define _LIBCPP_HAS_TIMESPEC_GET for FreeBSD when appropriate
ClosedPublic

Authored by dim on Dec 15 2019, 3:22 AM.

Details

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.

Diff Detail