From fb84a76214c812310e9a684d621d1b7a43a4b30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Tue, 4 Mar 1997 23:07:18 +0100 Subject: [PATCH] Now works on FreeBSD. Probably should have a configure-test though. Rev: src/dynamic_load.c:1.11 --- src/dynamic_load.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dynamic_load.c b/src/dynamic_load.c index b903f41d1b..12d7f39892 100644 --- a/src/dynamic_load.c +++ b/src/dynamic_load.c @@ -71,7 +71,13 @@ void f_load_module(INT32 args) #ifdef HAVE_DLOPEN init=(modfun)dlsym(module, "pike_module_init"); + if (!init) { + init=(modfun)dlsym(module, "_pike_module_init"); + } exit=(modfun)dlsym(module, "pike_module_exit"); + if (!exit) { + exit=(modfun)dlsym(module, "_pike_module_exit"); + } #elif defined(USE_DLD) init = (modfun)dld_get_func("pike_module_init"); -- GitLab