$OpenBSD: patch-gmodule_gmodule-dl_c,v 1.1 2004/12/07 06:16:21 marcm Exp $
--- gmodule/gmodule-dl.c.orig	Thu Dec  2 20:46:34 2004
+++ gmodule/gmodule-dl.c	Thu Dec  2 20:47:44 2004
@@ -106,6 +106,7 @@ _g_module_open (const gchar *file_name,
 static gpointer
 _g_module_self (void)
 {
+#ifndef __OpenBSD__
   gpointer handle;
   
   /* to query symbols from the program itself, special link options
@@ -117,6 +118,9 @@ _g_module_self (void)
     g_module_set_error (fetch_dlerror (TRUE));
   
   return handle;
+#else
+  return RTLD_DEFAULT;
+#endif
 }
 
 static void
