bind/bind97-rh478718.patch

33 lines
963 B
Diff
Raw Normal View History

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