summaryrefslogtreecommitdiffstats
path: root/Source/cmDynamicLoader.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-02-16 15:35:18 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-02-16 15:35:18 (GMT)
commit4c1ae1b5af850e98559d0cc74295e3bb043d8c8e (patch)
tree8b5f9aea8ae996e852870d6062c0c050257066a7 /Source/cmDynamicLoader.h
parent036fd2134d0c5f3f586eb5150854e373a8f25a9d (diff)
downloadCMake-4c1ae1b5af850e98559d0cc74295e3bb043d8c8e.zip
CMake-4c1ae1b5af850e98559d0cc74295e3bb043d8c8e.tar.gz
CMake-4c1ae1b5af850e98559d0cc74295e3bb043d8c8e.tar.bz2
ENH: fix for bug 2808, use dlopen on new OSX versions
Diffstat (limited to 'Source/cmDynamicLoader.h')
-rw-r--r--Source/cmDynamicLoader.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmDynamicLoader.h b/Source/cmDynamicLoader.h
index 89e0c6f..3c7d3b4 100644
--- a/Source/cmDynamicLoader.h
+++ b/Source/cmDynamicLoader.h
@@ -28,14 +28,19 @@
// Ugly stuff for library handles
// They are different on several different OS's
#if defined(__hpux)
-# include <dl.h>
+ #include <dl.h>
typedef shl_t cmLibHandle;
#elif defined(_WIN32)
#include <windows.h>
typedef HMODULE cmLibHandle;
#elif defined(__APPLE__)
- #include <mach-o/dyld.h>
- typedef NSModule cmLibHandle;
+ #include <AvailabilityMacros.h>
+ #if MAC_OS_X_VERSION_MIN_REQUIRED < 1030
+ #include <mach-o/dyld.h>
+ typedef NSModule cmLibHandle;
+ #else
+ typedef void* cmLibHandle;
+ #endif
#else
typedef void* cmLibHandle;
#endif