improve gitignore
[platform/upstream/glib.git] / gmodule / gmodule-os2.c
index 49d7351..d074d8c 100644 (file)
@@ -27,6 +27,7 @@
 /* 
  * MT safe
  */
+#include "config.h"
 
 #include <dlfcn.h>
 
 /* --- functions --- */
 static gpointer
 _g_module_open (const gchar    *file_name,
-               gboolean        bind_lazy)
+               gboolean        bind_lazy,
+               gboolean        bind_local)
 {
   gpointer handle;
   
-  handle = dlopen (file_name, RTLD_GLOBAL | (bind_lazy ? RTLD_LAZY : RTLD_NOW));
+  handle = dlopen (file_name,
+       (bind_local ? 0 : RTLD_GLOBAL) | (bind_lazy ? RTLD_LAZY : RTLD_NOW));
   if (!handle)
     g_module_set_error (dlerror ());