configs/imx6qsabresd: Add ext4 rootfs option
[buildroot-gz.git] / package / libdrm / 0002-xf86atomic-require-CAS-support-in-libatomic_ops.patch
blobff920fb5a7a07de23b52c423fa294ff33b56ce43
1 From 7384f79f69fdb7b691cc5b0c28c301b3fe8b633e Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Thu, 26 May 2016 10:46:57 +0200
4 Subject: [PATCH] xf86atomic: require CAS support in libatomic_ops
6 Since AO_compare_and_swap_full() is used by libdrm, AO_REQUIRE_CAS
7 must be defined before including <atomic_ops.h> so that we are sure
8 that CAS support will be provided. This is necessary to make sure that
9 the AO_compare_and_swap_full() function will be provided on all
10 architectures, including the ones that don't have built-in CAS support
11 such as SPARCv8.
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 ---
15 xf86atomic.h | 1 +
16 1 file changed, 1 insertion(+)
18 diff --git a/xf86atomic.h b/xf86atomic.h
19 index 922b37d..d7017a5 100644
20 --- a/xf86atomic.h
21 +++ b/xf86atomic.h
22 @@ -58,6 +58,7 @@ typedef struct {
23 #endif
25 #if HAVE_LIB_ATOMIC_OPS
26 +#define AO_REQUIRE_CAS
27 #include <atomic_ops.h>
29 #define HAS_ATOMIC_OPS 1
30 --
31 2.7.4