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.
gentoo-overlay/dev-libs/glib/files/glib-2.12.12-fbsd.patch

36 lines
850 B

From deeb71226d4ab465d48805d899ec88eb836a6966 Mon Sep 17 00:00:00 2001
From: Daniel Gryniewicz <dang@gentoo.org>
Date: Sun, 24 Nov 2013 19:46:13 +0100
Subject: [PATCH 1/4] Fix gmodule issue on FreeBSD
Gentoo bug #184301, Gnome bug #107626.
---
gmodule/gmodule-dl.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gmodule/gmodule-dl.c b/gmodule/gmodule-dl.c
index a606f17..57fc41b 100644
--- a/gmodule/gmodule-dl.c
+++ b/gmodule/gmodule-dl.c
@@ -107,6 +107,7 @@ _g_module_open (const gchar *file_name,
static gpointer
_g_module_self (void)
{
+#ifndef __FreeBSD__
gpointer handle;
/* to query symbols from the program itself, special link options
@@ -122,6 +123,9 @@ _g_module_self (void)
g_module_set_error (fetch_dlerror (TRUE));
return handle;
+#else
+ return RTLD_DEFAULT;
+#endif
}
static void
--
1.8.3.2