From 8c511950395ce496028bbc5ba30d9b9632690db6 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Thu, 26 May 2016 10:46:57 +0200 Subject: [PATCH] xf86atomic: require CAS support in libatomic_ops Since AO_compare_and_swap_full() is used by libdrm, AO_REQUIRE_CAS must be defined before including so that we are sure that CAS support will be provided. This is necessary to make sure that the AO_compare_and_swap_full() function will be provided on all architectures, including the ones that don't have built-in CAS support such as SPARCv8. Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Seiderer Acked-by: Eric Engestrom --- xf86atomic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/xf86atomic.h b/xf86atomic.h index 2d733bd5..efa47a77 100644 --- a/xf86atomic.h +++ b/xf86atomic.h @@ -54,6 +54,7 @@ typedef struct { #endif #if HAVE_LIB_ATOMIC_OPS +#define AO_REQUIRE_CAS #include #define HAS_ATOMIC_OPS 1