22 lines
911 B
Plaintext
22 lines
911 B
Plaintext
$OpenBSD: patch-browser-plugin_totemPluginGlue_cpp,v 1.5 2011/12/01 11:15:02 ajacoutot Exp $
|
|
|
|
From d3d467a49fa828f1b6bb5d999c97158bd736785e Mon Sep 17 00:00:00 2001
|
|
From: Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
Date: Wed, 05 Oct 2011 08:16:30 +0000
|
|
Subject: Fix dlopening libdbus-glib-1 on OpenBSD.
|
|
|
|
--- browser-plugin/totemPluginGlue.cpp.orig Mon Oct 18 15:19:58 2010
|
|
+++ browser-plugin/totemPluginGlue.cpp Wed Oct 5 10:24:35 2011
|
|
@@ -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;
|