diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-02-01 13:07:27 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-01 23:59:42 +0000 |
commit | c22484279df745f37b3e80b125059d4167b01b7b (patch) | |
tree | 01764a23a64674f4f6109bffcf25a95e2b7f34d3 /meta/recipes-core/glib-2.0/glib-2.0/g_once_init_enter.patch | |
parent | 50b9f87124bcfce2ff2dd65009272885eed6ee7a (diff) | |
download | poky-c22484279df745f37b3e80b125059d4167b01b7b.tar.gz |
glib-2.0: Add stable version 2.26.1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/g_once_init_enter.patch')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/g_once_init_enter.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/g_once_init_enter.patch b/meta/recipes-core/glib-2.0/glib-2.0/g_once_init_enter.patch new file mode 100644 index 0000000000..a2a506c2ad --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0/g_once_init_enter.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | fix g_once_init_enter compile failure | ||
2 | |||
3 | Kernelshark trips over a compile bug in glib-2.0 addressed by Open Embedded | ||
4 | back in the 2.22 timeframe. It appears to still be present in 2.27. | ||
5 | |||
6 | http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg005 | ||
7 | |||
8 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> | ||
9 | |||
10 | Index: glib-2.27.5/glib/gthread.h | ||
11 | =================================================================== | ||
12 | --- glib-2.27.5.orig/glib/gthread.h | ||
13 | +++ glib-2.27.5/glib/gthread.h | ||
14 | @@ -344,7 +344,7 @@ void g_once_init_leav | ||
15 | G_INLINE_FUNC gboolean | ||
16 | g_once_init_enter (volatile gsize *value_location) | ||
17 | { | ||
18 | - if G_LIKELY ((gpointer) g_atomic_pointer_get (value_location) != NULL) | ||
19 | + if G_LIKELY ((gpointer) g_atomic_pointer_get ((volatile gpointer *)value_location) != NULL) | ||
20 | return FALSE; | ||
21 | else | ||
22 | return g_once_init_enter_impl (value_location); | ||