57726f
diff --git a/configure.ac b/configure.ac
57726f
index 26c509e..c1bfd62 100644
57726f
--- a/configure.ac
57726f
+++ b/configure.ac
57726f
@@ -4152,6 +4152,10 @@ if test "yes" = "$use_atomic"; then
57726f
 	AC_MSG_RESULT($arch)
57726f
 fi
57726f
 
57726f
+if test ! "$arch" = "x86_64" -a "$have_xaddq" = "yes"; then
57726f
+	AC_MSG_ERROR([XADDQ present but disabled by Fedora patch!])
57726f
+fi
57726f
+
57726f
 if test "yes" = "$have_atomic"; then
57726f
 	AC_MSG_CHECKING([compiler support for inline assembly code])
57726f
 
57726f
diff --git a/lib/isc/include/isc/platform.h.in b/lib/isc/include/isc/platform.h.in
57726f
index c902d46..9c7c342 100644
57726f
--- a/lib/isc/include/isc/platform.h.in
57726f
+++ b/lib/isc/include/isc/platform.h.in
57726f
@@ -284,19 +284,25 @@
57726f
  * If the "xaddq" operation (64bit xadd) is available on this architecture,
57726f
  * ISC_PLATFORM_HAVEXADDQ will be defined.
57726f
  */
57726f
-@ISC_PLATFORM_HAVEXADDQ@
57726f
 
57726f
 /*
57726f
- * If the 32-bit "atomic swap" operation is available on this
57726f
- * architecture, ISC_PLATFORM_HAVEATOMICSTORE" will be defined.
57726f
+ * If the 64-bit "atomic swap" operation is available on this
57726f
+ * architecture, ISC_PLATFORM_HAVEATOMICSTOREQ" will be defined.
57726f
  */
57726f
-@ISC_PLATFORM_HAVEATOMICSTORE@
57726f
+
57726f
+#ifdef __x86_64__
57726f
+#define ISC_PLATFORM_HAVEXADDQ 1
57726f
+#define ISC_PLATFORM_HAVEATOMICSTOREQ 1
57726f
+#else
57726f
+#undef ISC_PLATFORM_HAVEXADDQ
57726f
+#undef ISC_PLATFORM_HAVEATOMICSTOREQ
57726f
+#endif
57726f
 
57726f
 /*
57726f
- * If the 64-bit "atomic swap" operation is available on this
57726f
+ * If the 32-bit "atomic swap" operation is available on this
57726f
  * architecture, ISC_PLATFORM_HAVEATOMICSTORE" will be defined.
57726f
  */
57726f
-@ISC_PLATFORM_HAVEATOMICSTOREQ@
57726f
+@ISC_PLATFORM_HAVEATOMICSTORE@
57726f
 
57726f
 /*
57726f
  * If the "compare-and-exchange" operation is available on this architecture,