pkgsrc/sysutils/gnome-vfs/patches/patch-ag
nathanw 15ef0e67c0 Pull in a change similar to one in gnome CVS, to initialize
the g_thread subsystem before calling G_LOCK(). Fixes a case
of unlocking a mutex that isn't locked.
2003-04-17 23:09:52 +00:00

14 lines
413 B
Text

$NetBSD: patch-ag,v 1.8 2003/04/17 23:09:53 nathanw Exp $
--- libgnomevfs/gnome-vfs-init.c.orig 2003-04-17 18:42:59.000000000 -0400
+++ libgnomevfs/gnome-vfs-init.c 2003-04-17 18:46:06.000000000 -0400
@@ -46,6 +46,9 @@
gboolean retval;
char *bogus_argv[2] = { "dummy", NULL };
+ if (!g_thread_supported ())
+ g_thread_init (NULL);
+
G_LOCK (vfs_already_initialized);
if (!vfs_already_initialized) {