summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-06 17:28:41 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-06 17:28:41 +0200
commitc2281495f8d2d34cafdc05f4a2fcfe752da4ec6d (patch)
treeb2227fc1ac22962f41498c85946ce18e034f49f6
parent29bd27cead6ce2721cbf2501a96d050ad1ffaad0 (diff)
Fix build on Mac OS X.
-rw-r--r--MLKInterpreter.m10
1 files changed, 8 insertions, 2 deletions
diff --git a/MLKInterpreter.m b/MLKInterpreter.m
index 64e23de..1dd5e6b 100644
--- a/MLKInterpreter.m
+++ b/MLKInterpreter.m
@@ -497,10 +497,16 @@ static MLKSymbol *MULTIPLE_VALUE_CALL;
// FIXME: Support library designators.
#ifdef _WIN32
- EnumProcessModules (...);
- GetProcAddress (..., [name UTF8String]);
+ // FIXME
+ //EnumProcessModules (...);
+ //GetProcAddress (..., [name UTF8String]);
#else
+#ifdef linux
function = dlsym (RTLD_DEFAULT, [name UTF8String]);
+#else
+ // FIXME
+ function = dlsym (NULL, [name UTF8String]);
+#endif
#endif
return LAUTORELEASE ([[MLKForeignProcedure alloc]