Tomas Hozza 3fed71
diff --git a/configure.in b/configure.in
102df2
index 97d9d15..999040d 100644
Tomas Hozza 3fed71
--- a/configure.in
Tomas Hozza 3fed71
+++ b/configure.in
102df2
@@ -4041,6 +4041,10 @@ if test "yes" = "$use_atomic"; then
Adam Tkac 5e22ac
 	AC_MSG_RESULT($arch)
Adam Tkac 5e22ac
 fi
Adam Tkac 5e22ac
 
Adam Tkac 5e22ac
+if test ! "$arch" = "x86_64" -a "$have_xaddq" = "yes"; then
Adam Tkac 5e22ac
+	AC_MSG_ERROR([XADDQ present but disabled by Fedora patch!])
Adam Tkac 5e22ac
+fi
Adam Tkac 5e22ac
+
102df2
 if test "yes" = "$have_atomic"; then
Adam Tkac 5e22ac
 	AC_MSG_CHECKING([compiler support for inline assembly code])
Adam Tkac 5e22ac
 
Tomas Hozza 3fed71
diff --git a/lib/isc/include/isc/platform.h.in b/lib/isc/include/isc/platform.h.in
102df2
index 24b61db..28f49c8 100644
Tomas Hozza 3fed71
--- a/lib/isc/include/isc/platform.h.in
Tomas Hozza 3fed71
+++ b/lib/isc/include/isc/platform.h.in
102df2
@@ -286,7 +286,11 @@
Adam Tkac 5e22ac
  * If the "xaddq" operation (64bit xadd) is available on this architecture,
Adam Tkac 5e22ac
  * ISC_PLATFORM_HAVEXADDQ will be defined.
Adam Tkac 5e22ac
  */
Adam Tkac 5e22ac
-@ISC_PLATFORM_HAVEXADDQ@
Adam Tkac 5e22ac
+#ifdef __x86_64__
Adam Tkac 5e22ac
+#define ISC_PLATFORM_HAVEXADDQ 1
Adam Tkac 5e22ac
+#else
Adam Tkac 5e22ac
+#undef ISC_PLATFORM_HAVEXADDQ
Adam Tkac 5e22ac
+#endif
Adam Tkac 5e22ac
 
Adam Tkac 5e22ac
 /*
Tomas Hozza 3fed71
  * If the 32-bit "atomic swap" operation is available on this