summaryrefslogtreecommitdiffstats
path: root/devel/glib20/files/patch-gmodule::gmodule-dl.c
blob: 2d16e6d54ba5fa5c3ee12a1604c6001a3627247d (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
24

$FreeBSD: ports/devel/glib20/files/patch-gmodule::gmodule-dl.c,v 1.6 2006/04/30 00:46:48 marcus Exp $
  $MCom: ports/devel/glib20/files/patch-gmodule::gmodule-dl.c,v 1.16 2005/12/15 00:18:44 marcus Exp $

--- 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