summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]