[PATCH] D50799: Fix for PR 38495: <ctime> no longer compiles on FreeBSD, due to lack of timespec_get()

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 15 12:56:26 PDT 2018


mclow.lists created this revision.
mclow.lists added reviewers: ldionne, EricWF, dim.

Fixes this by adding a new config macro  `_LIBCPP_HAS_TIMESPEC_GET` (sigh)

There's also a drive-by fix in here about not importing `aligned_alloc` into namespace `std` before C++17.


https://reviews.llvm.org/D50799

Files:
  include/__config
  include/cstdlib
  include/ctime
  test/std/language.support/support.runtime/ctime.pass.cpp
  test/std/utilities/time/date.time/ctime.pass.cpp
  test/support/test_macros.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50799.160895.patch
Type: text/x-patch
Size: 4483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180815/0936b9bf/attachment-0001.bin>


More information about the cfe-commits mailing list