mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 22:08:44 +02:00
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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Seiderer <ps.report@gmx.net> Acked-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
8c1185d22c
commit
8c51195039
1 changed files with 1 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ typedef struct {
|
|||
#endif
|
||||
|
||||
#if HAVE_LIB_ATOMIC_OPS
|
||||
#define AO_REQUIRE_CAS
|
||||
#include <atomic_ops.h>
|
||||
|
||||
#define HAS_ATOMIC_OPS 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue