aboutsummaryrefslogtreecommitdiff
path: root/devel/glib20/files/patch-gmodule_gmodule-dl.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/glib20/files/patch-gmodule_gmodule-dl.c')
-rw-r--r--devel/glib20/files/patch-gmodule_gmodule-dl.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/glib20/files/patch-gmodule_gmodule-dl.c b/devel/glib20/files/patch-gmodule_gmodule-dl.c
new file mode 100644
index 000000000000..586d7f80bd62
--- /dev/null
+++ b/devel/glib20/files/patch-gmodule_gmodule-dl.c
@@ -0,0 +1,20 @@
+--- gmodule/gmodule-dl.c.orig Sat Feb 17 08:28:07 2001
++++ gmodule/gmodule-dl.c Fri Jan 18 09:48:45 2002
+@@ -104,6 +104,7 @@
+ static gpointer
+ _g_module_self (void)
+ {
++#ifndef __FreeBSD__
+ gpointer handle;
+
+ /* to query symbols from the program itself, special link options
+@@ -115,6 +116,9 @@
+ g_module_set_error (fetch_dlerror (TRUE));
+
+ return handle;
++#else
++ return RTLD_DEFAULT;
++#endif
+ }
+
+ static void