summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-07-27 12:40:51 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-07-27 12:41:27 (GMT)
commit521f9b245330665f114238e1a888161c696fed03 (patch)
tree8c8d6238077500c6a3affffe9dd3227ed2abd075 /src
parent4b696ce11ffed279ed92c63bb85cbcdaab818033 (diff)
downloadQt-521f9b245330665f114238e1a888161c696fed03.zip
Qt-521f9b245330665f114238e1a888161c696fed03.tar.gz
Qt-521f9b245330665f114238e1a888161c696fed03.tar.bz2
Compile on Mac OS X
Need the right include for the mach_*() functions.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qcore_unix.cpp4
-rw-r--r--src/corelib/kernel/qeventdispatcher_unix.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/kernel/qcore_unix.cpp b/src/corelib/kernel/qcore_unix.cpp
index d0a4d8f..b321518 100644
--- a/src/corelib/kernel/qcore_unix.cpp
+++ b/src/corelib/kernel/qcore_unix.cpp
@@ -47,6 +47,10 @@
#include "qeventdispatcher_unix_p.h" // for the timeval operators
+#ifdef Q_OS_MAC
+#include <mach/mach_time.h>
+#endif
+
#if !defined(QT_NO_CLOCK_MONOTONIC)
# if defined(QT_BOOTSTRAPPED)
# define QT_NO_CLOCK_MONOTONIC
diff --git a/src/corelib/kernel/qeventdispatcher_unix.cpp b/src/corelib/kernel/qeventdispatcher_unix.cpp
index 6f1256b..2943c6d 100644
--- a/src/corelib/kernel/qeventdispatcher_unix.cpp
+++ b/src/corelib/kernel/qeventdispatcher_unix.cpp
@@ -59,10 +59,6 @@
# include <sys/times.h>
#endif
-#ifdef Q_OS_MAC
-#include <mach/mach_time.h>
-#endif
-
QT_BEGIN_NAMESPACE
Q_CORE_EXPORT bool qt_disable_lowpriority_timers=false;