]> code.citadel.org Git - citadel.git/commitdiff
* dynloader.c: Darwin places underscores in front of symbol names, just
authorMichael Hampton <io_error@uncensored.citadel.org>
Sat, 19 Oct 2002 08:30:03 +0000 (08:30 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sat, 19 Oct 2002 08:30:03 +0000 (08:30 +0000)
  like OpenBSD.

citadel/ChangeLog
citadel/dynloader.c

index cc6638b45d0eacf7f52e4e8b3e10eaaae411dd88..57ca43b51f7b64646e47ac439316788c20d469a6 100644 (file)
@@ -1,4 +1,8 @@
  $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)
@@ -4113,4 +4117,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index c1e3c64b3d60e42395f9f11c3301eff2372a6756..fbec1b316884f7aa0371b79944f8a5c975454c82 100644 (file)
@@ -156,10 +156,10 @@ void DLoader_Init(char *pathname)
                        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) {