aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/libstdc++-v3/acinclude.m4
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-12-28 18:37:49 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2012-12-29 03:08:18 +0800
commitbd342f0491128ad15e6ea4ff241e243b753137c9 (patch)
tree1b9f4abf1706ab5c8e8a90a6d239dc5f1498cf42 /gcc-4.4.3/libstdc++-v3/acinclude.m4
parentb6e375800c9a2f02a732cbdf5e87a860c3d954e1 (diff)
downloadtoolchain_gcc-bd342f0491128ad15e6ea4ff241e243b753137c9.tar.gz
toolchain_gcc-bd342f0491128ad15e6ea4ff241e243b753137c9.tar.bz2
toolchain_gcc-bd342f0491128ad15e6ea4ff241e243b753137c9.zip
Enable _GLIBCXX_USE_CLOCK_MONOTONIC in libstdc++
This is needed to provide "steady_clock" (or monotonic_clock in GCC 4.6/4.4.3) in <chrono> See http://code.google.com/p/android/issues/detail?id=39680 Change-Id: I0c31704971dc15751ce936f563de7c42a4e645a6
Diffstat (limited to 'gcc-4.4.3/libstdc++-v3/acinclude.m4')
-rw-r--r--gcc-4.4.3/libstdc++-v3/acinclude.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc-4.4.3/libstdc++-v3/acinclude.m4 b/gcc-4.4.3/libstdc++-v3/acinclude.m4
index 195015bd2..f0c77d899 100644
--- a/gcc-4.4.3/libstdc++-v3/acinclude.m4
+++ b/gcc-4.4.3/libstdc++-v3/acinclude.m4
@@ -1162,7 +1162,7 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [
[#include <unistd.h>
#include <time.h>
],
- [#if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
+ [#if _POSIX_TIMERS > 0 && (defined(_POSIX_MONOTONIC_CLOCK) || defined(__ANDROID__))
timespec tp;
#endif
clock_gettime(CLOCK_MONOTONIC, &tp);