You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
geany/geany-find-sonames.patch

23 lines
838 B

--- geany-orig/src/vte.c.soname 2007-01-25 06:52:12.000000000 -0500
+++ geany-orig/src/vte.c 2007-01-25 06:52:19.000000000 -0500
@@ -134,11 +134,14 @@ void vte_init(void)
}
else
{
- module = g_module_open("libvte.so", G_MODULE_BIND_LAZY);
- // try to fallback to different versions of libvte.so.x
- if (module == NULL) module = g_module_open("libvte.so.4", G_MODULE_BIND_LAZY);
- else if (module == NULL) module = g_module_open("libvte.so.8", G_MODULE_BIND_LAZY);
- else if (module == NULL) module = g_module_open("libvte.so.9", G_MODULE_BIND_LAZY);
+ gint i;
+ const gchar *sonames[] = { "libvte.so", "libvte.so.4",
+ "libvte.so.8", "libvte.so.9", NULL };
+
+ for (i = 0; sonames[i] != NULL && module == NULL; i++ )
+ {
+ module = g_module_open(sonames[i], G_MODULE_BIND_LAZY);
+ }
}
if (module == NULL)