libglib2-fix-compilation-with-no-builtin-atomic.patch 796 B

12345678910111213141516171819202122232425
  1. From 58096320ea0888c4fbbff318839017a4d2e82703 Mon Sep 17 00:00:00 2001
  2. From: Lionel Landwerlin <llandwerlin@gmail.com>
  3. Date: Sat, 6 Nov 2010 14:56:15 +0100
  4. Subject: [PATCH] glib: fix compilation with no builtin atomic operations compilers
  5. Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
  6. ---
  7. glib/gatomic.c | 1 +
  8. 1 files changed, 1 insertions(+), 0 deletions(-)
  9. diff --git a/glib/gatomic.c b/glib/gatomic.c
  10. index 845c866..01468ce 100644
  11. --- a/glib/gatomic.c
  12. +++ b/glib/gatomic.c
  13. @@ -881,6 +881,7 @@ g_atomic_pointer_compare_and_exchange (volatile gpointer G_GNUC_MAY_ALIAS *atomi
  14. #endif /* DEFINE_WITH_WIN32_INTERLOCKED */
  15. #ifdef DEFINE_WITH_MUTEXES
  16. +# include "gthread.h"
  17. /* We have to use the slow, but safe locking method */
  18. static GMutex *g_atomic_mutex;
  19. --
  20. 1.7.2.3