1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

search for variant names of glib 1.2 lib

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@507 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2006-01-24 23:03:58 +00:00
parent 77f3b890c2
commit f90cdfa30d

View File

@ -218,9 +218,12 @@ void *xmms_thread_func_dynamic(void *pvoid)
switch(info.xmms.current_project) {
case (PROJECT_XMMS) :
glib_v1_2_handle = dlopen("libglib-1.2.so.0", RTLD_LAZY);
/* make an effort to find the glib 1.2 shared lib */
glib_v1_2_handle = dlopen("libglib-1.2.so.0", RTLD_LAZY) ||
dlopen("libglib12.so", RTLD_LAZY) ||
dlopen("libglib.so", RTLD_LAZY);
if (!glib_v1_2_handle) {
ERR("unable to open libglib-1.2.so.0");
ERR("unable to find glib 1.2 shared object lib!");
pthread_exit(NULL);
}
g_free_v1_2=dlsym(glib_v1_2_handle, "g_free");