Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6-1]: src/external/bsd/bind/include/isc Pullup additional patches...
details: https://anonhg.NetBSD.org/src/rev/ab165e38996d
branches: netbsd-6-1
changeset: 776038:ab165e38996d
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Dec 31 06:17:24 2014 +0000
description:
Pullup additional patches 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 0049511113b0 -r ab165e38996d external/bsd/bind/include/isc/platform.h
--- a/external/bsd/bind/include/isc/platform.h Sun Dec 28 17:06:36 2014 +0000
+++ b/external/bsd/bind/include/isc/platform.h Wed Dec 31 06:17:24 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