diff options
Diffstat (limited to 'devel/glib12/files/patch-gmodule::gmodule-dl.c')
-rw-r--r-- | devel/glib12/files/patch-gmodule::gmodule-dl.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/glib12/files/patch-gmodule::gmodule-dl.c b/devel/glib12/files/patch-gmodule::gmodule-dl.c new file mode 100644 index 000000000000..5460f6300bc1 --- /dev/null +++ b/devel/glib12/files/patch-gmodule::gmodule-dl.c @@ -0,0 +1,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 |