Module Name:    src
Committed By:   mrg
Date:           Mon Aug 13 07:17:34 UTC 2018

Modified Files:
        src/external/mpl/bind/include/isc: platform.h

Log Message:
avoid using x86 specific asm on all platforms.

XXX: this might want to be expanded or something more portable used.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/mpl/bind/include/isc/platform.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mpl/bind/include/isc/platform.h
diff -u src/external/mpl/bind/include/isc/platform.h:1.2 src/external/mpl/bind/include/isc/platform.h:1.3
--- src/external/mpl/bind/include/isc/platform.h:1.2	Sun Aug 12 20:16:10 2018
+++ src/external/mpl/bind/include/isc/platform.h	Mon Aug 13 07:17:34 2018
@@ -346,7 +346,11 @@
 /*
  * Define with the busy wait nop asm or function call.
  */
+#if defined(__x86_64__) || defined(__i386__)
 #define ISC_PLATFORM_BUSYWAITNOP asm("rep; nop")
+#else
+#undef ISC_PLATFORM_BUSYWAITNOP
+#endif
 
 /*
  * Define if the platform has <strings.h>.

Reply via email to