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