diff options
Diffstat (limited to 'dev-libs/glib/files/glib-2.12.12-fbsd.patch')
-rw-r--r-- | dev-libs/glib/files/glib-2.12.12-fbsd.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-libs/glib/files/glib-2.12.12-fbsd.patch b/dev-libs/glib/files/glib-2.12.12-fbsd.patch new file mode 100644 index 0000000..5aca695 --- /dev/null +++ b/dev-libs/glib/files/glib-2.12.12-fbsd.patch @@ -0,0 +1,35 @@ +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 + |