--- src/usr.sbin/bind/include/isc/platform.h 2007-01-28 06:36:13.000000000 +0900 +++ src/usr.sbin/bind/include/isc/platform.h.new 2007-11-04 09:08:25.000000000 +0900 @@ -219,6 +219,13 @@ */ #define ISC_PLATFORM_HAVESYSUNH 1 +#if defined(__i386__) || defined(__x86_64__) \ + || defined(__sparc__) && defined(_LP64) \ + || defined(__alpha__) \ + || defined(__powerpc__) && defined(notyet) \ + || defined(__mips__) && !defined(_MIPS_ARCH_MIPS1) \ + || defined(__ia64__) + /* * If the "xadd" operation is available on this architecture, * ISC_PLATFORM_HAVEXADD will be defined. @@ -242,6 +249,32 @@ */ #define ISC_PLATFORM_USEGCCASM 1 +#else + +/* + * If the "xadd" operation is available on this architecture, + * ISC_PLATFORM_HAVEXADD will be defined. + */ +#undef ISC_PLATFORM_HAVEXADD + +/* + * If the "atomic swap" operation is available on this architecture, + * ISC_PLATFORM_HAVEATOMICSTORE" will be defined. + */ +#undef ISC_PLATFORM_HAVEATOMICSTORE + +/* + * If the "compare-and-exchange" operation is available on this architecture, + * ISC_PLATFORM_HAVECMPXCHG will be defined. + */ +#undef ISC_PLATFORM_HAVECMPXCHG + +/* + * Define if gcc ASM extension is available + */ + +#endif + /* * Define if Tru64 style ASM syntax must be used. */