diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-08-16 17:15:36 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-08-16 17:15:36 (GMT) |
commit | 9b594b480fea33624fcf636adfa455aba5efb97f (patch) | |
tree | d34bb0ed34d0bd19ce07b1187bfcf22fc3c0a399 /SwifTools/Idle | |
parent | 00a26ca1c2d3f753599d5608b18726996beeb4b1 (diff) | |
download | swift-contrib-9b594b480fea33624fcf636adfa455aba5efb97f.zip swift-contrib-9b594b480fea33624fcf636adfa455aba5efb97f.tar.bz2 |
More build system tweaks.
Diffstat (limited to 'SwifTools/Idle')
-rw-r--r-- | SwifTools/Idle/PlatformIdleQuerier.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/SwifTools/Idle/PlatformIdleQuerier.cpp b/SwifTools/Idle/PlatformIdleQuerier.cpp index 7213e77..a28e701 100644 --- a/SwifTools/Idle/PlatformIdleQuerier.cpp +++ b/SwifTools/Idle/PlatformIdleQuerier.cpp @@ -7,15 +7,14 @@ #include "SwifTools/Idle/PlatformIdleQuerier.h" #include "Swiften/Base/Platform.h" -#if defined(SWIFTEN_PLATFORM_MACOSX) +#if defined(SWIFTEN_PLATFORM_MACOSX) && defined(HAVE_IOKIT) #include "SwifTools/Idle/MacOSXIdleQuerier.h" #elif defined(SWIFTEN_PLATFORM_WINDOWS) #include "SwifTools/Idle/WindowsIdleQuerier.h" #elif defined(HAVE_XSS) #include "SwifTools/Idle/XSSIdleQuerier.h" -#else -#include "SwifTools/Idle/DummyIdleQuerier.h" #endif +#include "SwifTools/Idle/DummyIdleQuerier.h" #include <cassert> #include <iostream> @@ -24,7 +23,11 @@ namespace Swift { PlatformIdleQuerier::PlatformIdleQuerier() : querier(NULL) { #if defined(SWIFTEN_PLATFORM_MACOSX) +#if defined(HAVE_IOKIT) querier = new MacOSXIdleQuerier(); +#else + querier = new DummyIdleQuerier(); +#endif #elif defined(SWIFTEN_PLATFORM_WINDOWS) querier = new WindowsIdleQuerier(); #elif defined(HAVE_XSS) |