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