summaryrefslogtreecommitdiff
path: root/devel/glib2/patches/patch-glib_gatomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/glib2/patches/patch-glib_gatomic.h')
-rw-r--r--devel/glib2/patches/patch-glib_gatomic.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/glib2/patches/patch-glib_gatomic.h b/devel/glib2/patches/patch-glib_gatomic.h
index cbe9c6e8a25..f7f7b3507d5 100644
--- a/devel/glib2/patches/patch-glib_gatomic.h
+++ b/devel/glib2/patches/patch-glib_gatomic.h
@@ -1,9 +1,9 @@
-$NetBSD: patch-glib_gatomic.h,v 1.1 2019/06/26 10:42:50 prlw1 Exp $
+$NetBSD: patch-glib_gatomic.h,v 1.2 2020/03/04 15:11:48 wiz Exp $
Ignore __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 as is already done
for android and linux. PR pkg/54298
---- glib/gatomic.h.orig 2019-06-10 17:47:20.000000000 +0000
+--- glib/gatomic.h.orig 2020-02-27 16:12:52.000000000 +0000
+++ glib/gatomic.h
@@ -82,7 +82,7 @@ gint g_atomic_int_exc
@@ -13,10 +13,10 @@ for android and linux. PR pkg/54298
+#if defined(G_ATOMIC_LOCK_FREE)
/* We prefer the new C11-style atomic extension of GCC if available */
- #if defined(__ATOMIC_SEQ_CST) && !defined(__clang__)
-@@ -250,7 +250,7 @@ G_END_DECLS
- (gsize) __sync_fetch_and_xor ((atomic), (val)); \
- }))
+ #if defined(__ATOMIC_SEQ_CST)
+@@ -372,7 +372,7 @@ G_END_DECLS
+
+ #endif /* !defined(__ATOMIC_SEQ_CST) */
-#else /* defined(G_ATOMIC_LOCK_FREE) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) */
+#else /* defined(G_ATOMIC_LOCK_FREE) */