CVS commit: src/external/mpl/bind/include/isc

2021-05-04 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue May  4 13:16:06 UTC 2021

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

Log Message:
bind: fix Clang build

I had already fixed this on 2021-03-27, but the fix was accidentally
reverted on 2021-04-29 when updating to bind 9.16.15.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/mpl/bind/include/isc/stdatomic.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/stdatomic.h
diff -u src/external/mpl/bind/include/isc/stdatomic.h:1.6 src/external/mpl/bind/include/isc/stdatomic.h:1.7
--- src/external/mpl/bind/include/isc/stdatomic.h:1.6	Thu Apr 29 17:26:14 2021
+++ src/external/mpl/bind/include/isc/stdatomic.h	Tue May  4 13:16:06 2021
@@ -142,7 +142,7 @@ typedef uintmax_t	   atomic_uintmax_t;
 	__c11_atomic_compare_exchange_weak_explicit(obj, expected, desired, \
 		succ, fail)
 #define atomic_exchange_explicit(obj, desired, order) \
-	__c11_atomic_exchange_explicit(obj, expected, order)
+	__c11_atomic_exchange_explicit(obj, desired, order)
 #elif defined(__GNUC_ATOMICS) /* __atomic builtins */
 #define atomic_init(obj, desired)	 (*obj = desired)
 #define atomic_load_explicit(obj, order) __atomic_load_n(obj, order)



CVS commit: src/external/mpl/bind/include/isc

2018-08-13 Thread matthew green
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 .



CVS commit: src/external/mpl/bind/include/isc

2018-08-12 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Aug 12 20:16:10 UTC 2018

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

Log Message:
don't use stdatomic.h yet; there is no support for the _8 functions on
ILP32 so we end up with undefined symbols.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 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.1 src/external/mpl/bind/include/isc/platform.h:1.2
--- src/external/mpl/bind/include/isc/platform.h:1.1	Sun Aug 12 09:02:43 2018
+++ src/external/mpl/bind/include/isc/platform.h	Sun Aug 12 16:16:10 2018
@@ -324,7 +324,7 @@
  * If  is available on this architecture,
  * ISC_PLATFORM_HAVESTDATOMIC will be defined.
  */
-#ifndef __lint__
+#ifdef notyet
 #define ISC_PLATFORM_HAVESTDATOMIC 1
 #endif