summaryrefslogtreecommitdiff
path: root/devel/glib12/files/patch-gmodule::gmodule-dl.c
blob: 5460f6300bc14dedb9800036722a395e6c44603e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$FreeBSD$

--- gmodule/gmodule-dl.c	2001/12/12 04:39:42	1.1
+++ gmodule/gmodule-dl.c	2001/12/12 04:41:05
@@ -100,6 +100,7 @@
 static gpointer
 _g_module_self (void)
 {
+#ifndef __FreeBSD__
   gpointer handle;
   
   /* to query symbols from the program itself, special link options
@@ -111,6 +112,9 @@
     g_module_set_error (fetch_dlerror ());
   
   return handle;
+#else
+  return RTLD_DEFAULT;
+#endif
 }
 
 static void