[totem] Fix dlopening libdbus-glib-1 on OpenBSD.



commit d3d467a49fa828f1b6bb5d999c97158bd736785e
Author: Antoine Jacoutot <ajacoutot openbsd org>
Date:   Wed Oct 5 10:16:30 2011 +0200

    Fix dlopening libdbus-glib-1 on OpenBSD.
    
    OpenBSD's library naming scheme differs from Linux, it only uses X.Y
    versionning.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660966

 browser-plugin/totemPluginGlue.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/browser-plugin/totemPluginGlue.cpp b/browser-plugin/totemPluginGlue.cpp
index f14b913..abcc666 100644
--- a/browser-plugin/totemPluginGlue.cpp
+++ b/browser-plugin/totemPluginGlue.cpp
@@ -434,7 +434,11 @@ NP_Initialize (NPNetscapeFuncs *aMozillaVTable,
 	/* we want to open libdbus-glib-1.so.2 in such a way
 	 * in such a way that it becomes permanentely resident */
 	void *handle;
+#if defined(__OpenBSD__)
+	handle = dlopen ("libdbus-glib-1.so", RTLD_NOW | RTLD_NODELETE);
+#else
 	handle = dlopen ("libdbus-glib-1.so.2", RTLD_NOW | RTLD_NODELETE);
+#endif
 	if (!handle) {
 		fprintf (stderr, "%s\n", dlerror()); 
 		return NPERR_MODULE_LOAD_FAILED_ERROR;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]