bind97-rh478718.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. diff -up bind-9.7.0/configure.in.rh478718 bind-9.7.0/configure.in
  2. --- bind-9.7.0/configure.in.rh478718 2010-03-01 14:50:02.331207076 +0100
  3. +++ bind-9.7.0/configure.in 2010-03-01 14:50:21.501207488 +0100
  4. @@ -2540,6 +2540,10 @@ main() {
  5. AC_MSG_RESULT($arch)
  6. fi
  7. +if test ! "$arch" = "x86_64" -a "$have_xaddq" = "yes"; then
  8. + AC_MSG_ERROR([XADDQ present but disabled by Fedora patch!])
  9. +fi
  10. +
  11. if test "$have_atomic" = "yes"; then
  12. AC_MSG_CHECKING([compiler support for inline assembly code])
  13. diff -up bind-9.7.0/lib/isc/include/isc/platform.h.in.rh478718 bind-9.7.0/lib/isc/include/isc/platform.h.in
  14. --- bind-9.7.0/lib/isc/include/isc/platform.h.in.rh478718 2010-03-01 14:50:31.421207522 +0100
  15. +++ bind-9.7.0/lib/isc/include/isc/platform.h.in 2010-03-01 14:50:40.313707286 +0100
  16. @@ -255,7 +255,11 @@
  17. * If the "xaddq" operation (64bit xadd) is available on this architecture,
  18. * ISC_PLATFORM_HAVEXADDQ will be defined.
  19. */
  20. -@ISC_PLATFORM_HAVEXADDQ@
  21. +#ifdef __x86_64__
  22. +#define ISC_PLATFORM_HAVEXADDQ 1
  23. +#else
  24. +#undef ISC_PLATFORM_HAVEXADDQ
  25. +#endif
  26. /*
  27. * If the "atomic swap" operation is available on this architecture,