]> code.citadel.org Git - citadel.git/commitdiff
OpenBSD places underscores in front of symbol names
authorNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 13 Apr 1999 17:51:37 +0000 (17:51 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 13 Apr 1999 17:51:37 +0000 (17:51 +0000)
citadel/ChangeLog
citadel/dynloader.c

index 24b237d761d772a331f90f30f40aa5fbb76b0724..e466ce27f47b2a330ffb629b63ee988a37a961f3 100644 (file)
@@ -1,3 +1,6 @@
+1999-04-13 Nathan Bryant <bryant@cs.usm.maine.edu>
+       * dynloader.c: OpenBSD places underscores in front of symbol names
+
 Mon Apr 12 22:13:26 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * aidepost.c: rewrote to unlink temp file before writing to it so that
          it will automatically go away if interrupted. Also ran indent -kr -i8
index 6074e8ca12cd59d798b566035a9fc82e4223f2cd..acd66c1dff46c2335fc1a22bcf5485d5f459471c 100644 (file)
@@ -111,7 +111,11 @@ void DLoader_Init(char *pathname)
       }
       
       h_init_fcn = (struct DLModule_Info * (*)(void))
+#ifndef __OpenBSD__
        dlsym(fcn_handle, "Dynamic_Module_Init");
+#else
+       dlsym(fcn_handle, "_Dynamic_Module_Init");
+#endif
 
       if ((dl_error = dlerror()) != NULL)
       {