From c2281495f8d2d34cafdc05f4a2fcfe752da4ec6d Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Wed, 6 Aug 2008 17:28:41 +0200 Subject: Fix build on Mac OS X. --- MLKInterpreter.m | 10 ++++++++-- 1 file 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] -- cgit v1.2.3