Skip to content
Commit 8c511950 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Seiderer
Browse files

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 <atomic_ops.h> 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: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Seiderer <ps.report@gmx.net>
Acked-by: default avatarEric Engestrom <eric.engestrom@intel.com>
parent 8c1185d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment