summaryrefslogtreecommitdiff
blob: 5aca6950a256a17a18d81da44c10238ee0519f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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