summaryrefslogtreecommitdiff
path: root/lib/ovs-atomic.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-07-15 14:13:53 -0700
committerBen Pfaff <blp@nicira.com>2013-07-31 08:56:36 -0700
commit15248032ea9e3e88849310e8f2cef9db618fce1a (patch)
tree5a2e5edb12f003848dbe122df9a5551c57eb9735 /lib/ovs-atomic.h
parent97be153858b4cd175cbe7862b8e1624bf22ab98a (diff)
downloadopenvswitch-15248032ea9e3e88849310e8f2cef9db618fce1a.tar.gz
configure: Add configure-time check for GCC 4.0+ atomic built-ins.
We found out earlier that GCC sometimes produces an error only at link time for atomic built-ins that are not supported on a platform. This actually tries the link at configure time and should thus reliably detect whether the atomic built-ins are really supported. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/ovs-atomic.h')
-rw-r--r--lib/ovs-atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ovs-atomic.h b/lib/ovs-atomic.h
index a0a34f30f..3fc9dcb8f 100644
--- a/lib/ovs-atomic.h
+++ b/lib/ovs-atomic.h
@@ -240,7 +240,7 @@
#include "ovs-atomic-c11.h"
#elif __GNUC__ >= 4 && __GNUC_MINOR__ >= 7
#include "ovs-atomic-gcc4.7+.h"
- #elif __GNUC__ >= 4
+ #elif HAVE_GCC4_ATOMICS
#include "ovs-atomic-gcc4+.h"
#else
#include "ovs-atomic-pthreads.h"