aboutsummaryrefslogtreecommitdiffstats
path: root/src/chrono.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-14 15:39:13 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-14 15:39:13 +0000
commitfd857c8184809f0fac54f7ec9d9e91477beb1b7d (patch)
tree58ed2d52992ba3dcfcc9e34d35ab3ed8b7aa76ed /src/chrono.cpp
parent78da6db1f23c0bfe8a36a5b5c05d06005037e556 (diff)
downloadsrc-fd857c8184809f0fac54f7ec9d9e91477beb1b7d.tar.gz
src-fd857c8184809f0fac54f7ec9d9e91477beb1b7d.zip
Vendor import of libc++ release_40 branch r292009:vendor/libc++/libc++-release_40-r292009
Notes
Notes: svn path=/vendor/libc++/dist/; revision=312179 svn path=/vendor/libc++/libc++-release_40-r292009/; revision=312180; tag=vendor/libc++/libc++-release_40-r292009
Diffstat (limited to 'src/chrono.cpp')
-rw-r--r--src/chrono.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chrono.cpp b/src/chrono.cpp
index df5cabdb1845..9b277a610cd2 100644
--- a/src/chrono.cpp
+++ b/src/chrono.cpp
@@ -42,7 +42,7 @@
#include <winapifamily.h>
#endif
#else
-#if !defined(CLOCK_REALTIME)
+#if !defined(CLOCK_REALTIME) || !defined(_LIBCXX_USE_CLOCK_GETTIME)
#include <sys/time.h> // for gettimeofday and timeval
#endif // !defined(CLOCK_REALTIME)
#endif // defined(_LIBCPP_WIN32API)