summaryrefslogtreecommitdiff
path: root/devel/glib2/patches/patch-al
blob: 6e6c91146ce6272b05719b06de33acea68f76df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-al,v 1.1 2007/08/16 18:11:44 tnn Exp $

--- glib/gthread.h.orig	2007-08-03 19:52:48.000000000 +0200
+++ glib/gthread.h
@@ -332,7 +332,7 @@ void                    g_once_init_leav
 G_INLINE_FUNC gboolean
 g_once_init_enter (volatile gsize *value_location)
 {
-  if G_LIKELY (g_atomic_pointer_get ((void**) value_location) !=0)
+  if G_LIKELY (g_atomic_pointer_get ((volatile gpointer*) value_location) !=0)
     return FALSE;
   else
     return g_once_init_enter_impl (value_location);