From c672bdd863f72e73366baaf30f4b16deb9249d21 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 24 Oct 2011 13:07:24 +0200 Subject: [PATCH] Improve atomic operation support detection. Fixes #342. --- src/util-atomic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util-atomic.h b/src/util-atomic.h index b11aff6dbd..d48ce6c36d 100644 --- a/src/util-atomic.h +++ b/src/util-atomic.h @@ -42,7 +42,8 @@ #define __UTIL_ATOMIC_H__ /* test if we have atomic operations support */ -#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 +#if !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8) || !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) || \ + !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2) || !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1) /** * \brief wrapper to declare an atomic variable including a (spin) lock