This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by mclow.lists on Aug 15 2018, 12:56 PM.

Details

Reviewers
ldionne
EricWF
dim
Summary

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.

Diff Detail

Event Timeline

mclow.lists created this revision.

Copy/paste error in original diff.

ldionne accepted this revision.Aug 15 2018, 2:00 PM

LGTM.

This revision is now accepted and ready to land.Aug 15 2018, 2:00 PM
dim accepted this revision.Aug 15 2018, 2:13 PM

LGTM.

mclow.lists closed this revision.Sep 19 2018, 10:11 AM

Landed as r339816