Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/external/bsd/bind/include/isc Pullup additional patch req...



details:   https://anonhg.NetBSD.org/src/rev/ed07c3af7784
branches:  netbsd-6
changeset: 776858:ed07c3af7784
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Dec 31 05:56:29 2014 +0000

description:
Pullup additional patch requested by spz in ticket #1217:

external/bsd/bind/include/isc/platform.h        patch

        Fix some definitions to match -current to fix compile error on
        many archs.

diffstat:

 external/bsd/bind/include/isc/platform.h |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (43 lines):

diff -r 749316d31146 -r ed07c3af7784 external/bsd/bind/include/isc/platform.h
--- a/external/bsd/bind/include/isc/platform.h  Mon Dec 29 15:47:02 2014 +0000
+++ b/external/bsd/bind/include/isc/platform.h  Wed Dec 31 05:56:29 2014 +0000
@@ -20,6 +20,8 @@
 #ifndef ISC_PLATFORM_H
 #define ISC_PLATFORM_H 1
 
+#include <sys/atomic.h>
+
 /*! \file */
 
 /*****
@@ -208,10 +210,12 @@
  *** Miscellaneous.
  ***/
 
+#if 0 /* use define in Makefile instead */
 /*
  * Defined if we are using threads.
  */
 #define ISC_PLATFORM_USETHREADS 1
+#endif
 
 /*
  * Defined if unistd.h does not cause fd_set to be delared.
@@ -266,13 +270,17 @@
  * If the "xadd" operation is available on this architecture,
  * ISC_PLATFORM_HAVEXADD will be defined.
  */
+#ifdef __HAVE_ATOMIC64_OPS
 #define ISC_PLATFORM_HAVEXADD 1
+#endif
 
 /*
  * If the "xaddq" operation (64bit xadd) is available on this architecture,
  * ISC_PLATFORM_HAVEXADDQ will be defined.
  */
+#ifdef __HAVE_ATOMIC64_OPS
 #define ISC_PLATFORM_HAVEXADDQ 1
+#endif
 
 /*
  * If the "atomic swap" operation is available on this architecture,



Home | Main Index | Thread Index | Old Index