plugin_init_proc = NULL;
plugin_sync_proc = NULL;
plugin_async_proc = NULL;
+ void* void_pointer;
+ if ((int)(sizeof(void_pointer)) == 8) {
+ g_plugin_handle = dlopen ( PLUGIN_PATH64, RTLD_NOW );
+ }
+ else {
+ g_plugin_handle = dlopen ( PLUGIN_PATH, RTLD_NOW );
+ }
- g_plugin_handle = dlopen ( PLUGIN_PATH, RTLD_NOW );
+ //g_plugin_handle = dlopen ( PLUGIN_PATH, RTLD_NOW );
if ( g_plugin_handle == NULL ) {
E ( "failed to dlopen(%s). error: %s\n", PLUGIN_PATH, dlerror() );
return 0;
}
return success;
-}
\ No newline at end of file
+}
#include "sdbd_plugin.h"
#define PLUGIN_PATH "/usr/lib/libsdbd_plugin.so"
+#define PLUGIN_PATH64 "/usr/lib64/libsdbd_plugin.so"
+
#define PLUGIN_XML_PATH "/etc/sdbd/commands.xml"
extern char* extcmd;