glib2: add missing gthread.h include, observed during host compilation of glib2 on...
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 5 Jul 2011 11:52:20 +0000 (11:52 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 5 Jul 2011 11:52:20 +0000 (11:52 +0000)
SVN-Revision: 27453

libs/glib2/patches/002-missing-gthread-include.patch [new file with mode: 0644]

diff --git a/libs/glib2/patches/002-missing-gthread-include.patch b/libs/glib2/patches/002-missing-gthread-include.patch
new file mode 100644 (file)
index 0000000..8def409
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/glib/gatomic.c
++++ b/glib/gatomic.c
+@@ -881,6 +881,7 @@ g_atomic_pointer_compare_and_exchange (v
+ #endif /* DEFINE_WITH_WIN32_INTERLOCKED */
+ #ifdef DEFINE_WITH_MUTEXES
++#include "gthread.h"
+ /* We have to use the slow, but safe locking method */
+ static GMutex *g_atomic_mutex;