Branch: Tag:

2003-12-10

2003-12-10 12:26:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed DYLD (MAcOS X) case.

Rev: src/dynamic_load.c:1.68

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: dynamic_load.c,v 1.67 2002/10/30 14:45:50 grubba Exp $ + || $Id: dynamic_load.c,v 1.68 2003/12/10 12:26:40 grubba Exp $   */      #ifdef TESTING
24:   # include "language.h"   # include "lex.h"    - RCSID("$Id: dynamic_load.c,v 1.67 2002/10/30 14:45:50 grubba Exp $"); + RCSID("$Id: dynamic_load.c,v 1.68 2003/12/10 12:26:40 grubba Exp $");      #else /* TESTING */   
271:      static void *dlsym(void *module, char *function)   { -  return NSLookupSymbolInModule(module, function); +  NSSymbol *symbol = NSLookupSymbolInModule(module, function); +  return symbol?NSAddressOfSymbol(symbol):NULL;   }      static void *dlclose(void *module)