$Log$
+ Revision 601.38 2002/10/19 08:30:03 error
+ * dynloader.c: Darwin places underscores in front of symbol names, just
+ like OpenBSD.
+
Revision 601.37 2002/10/19 08:18:06 error
* Disable any use of curses on Darwin (this is temporary until I beat
Apple's bizarre linker into submission)
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
continue;
}
h_init_fcn = (char * (*)(void))
-#ifndef __OpenBSD__
- dlsym(fcn_handle, "Dynamic_Module_Init");
-#else
+#if defined(__OpenBSD__) || defined(__APPLE__)
dlsym(fcn_handle, "_Dynamic_Module_Init");
+#else
+ dlsym(fcn_handle, "Dynamic_Module_Init");
#endif
if (dlerror() != NULL) {