diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-07-27 12:40:51 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-07-27 12:41:27 (GMT) |
commit | 521f9b245330665f114238e1a888161c696fed03 (patch) | |
tree | 8c8d6238077500c6a3affffe9dd3227ed2abd075 | |
parent | 4b696ce11ffed279ed92c63bb85cbcdaab818033 (diff) | |
download | Qt-521f9b245330665f114238e1a888161c696fed03.zip Qt-521f9b245330665f114238e1a888161c696fed03.tar.gz Qt-521f9b245330665f114238e1a888161c696fed03.tar.bz2 |
Compile on Mac OS X
Need the right include for the mach_*() functions.
-rw-r--r-- | src/corelib/kernel/qcore_unix.cpp | 4 | ||||
-rw-r--r-- | src/corelib/kernel/qeventdispatcher_unix.cpp | 4 |
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; |