0001-fix-compile-time-atomic-detection.patch 861 B

12345678910111213141516171819202122232425262728
  1. [PATCH] Fix compilation issues on architectures with limited atomic support
  2. Improved compile-time detection of atomic support in the compiler.
  3. Upstream-Status: submitted
  4. See : https://bugzilla.gnome.org/show_bug.cgi?id=752731
  5. Signed-off-by: Brendan Heading <brendanheading@gmail.com>
  6. ---
  7. glib/gthread-posix.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c
  10. index ae5d805..8db8557 100644
  11. --- a/glib/gthread-posix.c
  12. +++ b/glib/gthread-posix.c
  13. @@ -67,7 +67,7 @@
  14. #endif
  15. /* clang defines __ATOMIC_SEQ_CST but doesn't support the GCC extension */
  16. -#if defined(HAVE_FUTEX) && defined(__ATOMIC_SEQ_CST) && !defined(__clang__)
  17. +#if defined(HAVE_FUTEX) && defined(__ATOMIC_SEQ_CST) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) && !defined(__clang__)
  18. #define USE_NATIVE_MUTEX
  19. #endif
  20. --
  21. 2.4.3