From c72478ce90d83e355ad7782991d20cbbd2664fd3 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 9 May 2007 14:37:44 +0000 Subject: FreeBSD fixes - Autoconf: try to locate libraries in /usr/local - Autoconf: Help FreeBSD to locate BerkeleyDB - Autoconf: Search for dlopen in libc library - Autoconf: Support of --disable-bdb option is added to configure script - Fixed compilation with missing dlopen functionality - Suppress various warnings --- src/plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugin.c') diff --git a/src/plugin.c b/src/plugin.c index c1f0074..38337fb 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -125,10 +125,10 @@ rcc_plugin_handle rccPluginLoad(rcc_plugin_type type, const char *name) { if (!pluginfn) return NULL; sprintf(pluginfn, "%s/.rcc/engines/lib%s.so", rcc_home_dir, name); - res = dlopen(pluginfn, RTLD_NOW); + res = rccLibraryOpen(pluginfn); if (!res) { sprintf(pluginfn, LIBRCC_DATA_DIR "/engines/lib%s.so", name); - res = dlopen(pluginfn, RTLD_NOW); + res = rccLibraryOpen(pluginfn); } free(pluginfn); -- cgit v1.2.3