summaryrefslogtreecommitdiff
path: root/Source/cmDynamicLoader.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-02-16 10:35:18 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2006-02-16 10:35:18 -0500
commit4c1ae1b5af850e98559d0cc74295e3bb043d8c8e (patch)
tree8b5f9aea8ae996e852870d6062c0c050257066a7 /Source/cmDynamicLoader.h
parent036fd2134d0c5f3f586eb5150854e373a8f25a9d (diff)
downloadcmake-4c1ae1b5af850e98559d0cc74295e3bb043d8c8e.tar.gz
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 89e0c6f47f..3c7d3b459d 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