summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-03-29 13:10:14 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-29 13:24:20 (GMT)
commitec0fe5bb327f2533dcbb35855ca0d2a7f9a85581 (patch)
treefbd348a65f0ca1112ac8cf62412d86c4bc981714 /src/corelib/tools
parent1a6d4970793f0696bf54a85346a12e83b6d03013 (diff)
downloadQt-ec0fe5bb327f2533dcbb35855ca0d2a7f9a85581.zip
Qt-ec0fe5bb327f2533dcbb35855ca0d2a7f9a85581.tar.gz
Qt-ec0fe5bb327f2533dcbb35855ca0d2a7f9a85581.tar.bz2
Fix compilation on HP-UXi: _SC_MONOTONIC_CLOCK isn't defined
Reviewed-by: Trust Me
Diffstat (limited to 'src/corelib/tools')
-rw-r--r--src/corelib/tools/qelapsedtimer_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qelapsedtimer_unix.cpp b/src/corelib/tools/qelapsedtimer_unix.cpp
index 1a7bc71..2c4ea58 100644
--- a/src/corelib/tools/qelapsedtimer_unix.cpp
+++ b/src/corelib/tools/qelapsedtimer_unix.cpp
@@ -74,7 +74,7 @@ bool QElapsedTimer::isMonotonic()
static int returnValue = 0;
if (returnValue == 0) {
-# if (_POSIX_MONOTONIC_CLOCK-0 < 0)
+# if (_POSIX_MONOTONIC_CLOCK-0 < 0) || !defined(_SC_MONOTONIC_CLOCK)
returnValue = -1;
# elif (_POSIX_MONOTONIC_CLOCK == 0)
// detect if the system support monotonic timers