[Patch] [libc++] Don't use <sys/time.h>/gettimeofday() when possible

Joerg Sonnenberger joerg at britannica.bec.de
Tue Oct 7 08:57:23 PDT 2014


On Tue, Oct 07, 2014 at 01:43:43PM +0200, Ed Schouten wrote:
> Attached is a patch that adds exactly this. Would anyone mind if I
> were to push this patch into the tree one of these days?

Doesn't the include/chrono part change the ABI?

I think it would be better to organize this around a HAVE_CLOCK_GETTIME
define and provide it on !APPLE by default.

Also to consider are systems where clock_gettime requires -lrt, older
Linux for example. What about Solaris?

Joerg



More information about the cfe-commits mailing list