Module Name: src
Committed By: christos
Date: Sun Apr 12 22:40:56 UTC 2009
Modified Files:
src/external/bsd/bind/include/isc: platform.h
Log Message:
auto-define if we have 64 bit atomic ops.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/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/bsd/bind/include/isc/platform.h
diff -u src/external/bsd/bind/include/isc/platform.h:1.1 src/external/bsd/bind/include/isc/platform.h:1.2
--- src/external/bsd/bind/include/isc/platform.h:1.1 Sat Apr 11 23:46:09 2009
+++ src/external/bsd/bind/include/isc/platform.h Sun Apr 12 18:40:56 2009
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: platform.h,v 1.1 2009/04/12 03:46:09 christos Exp $ */
+/* $Id: platform.h,v 1.2 2009/04/12 22:40:56 christos Exp $ */
#ifndef ISC_PLATFORM_H
#define ISC_PLATFORM_H 1
@@ -25,6 +25,7 @@
/*****
***** Platform-dependent defines.
*****/
+#include <sys/atomic.h>
/***
*** Network.
@@ -250,7 +251,9 @@
* If the "xaddq" operation (64bit xadd) is available on this architecture,
* ISC_PLATFORM_HAVEXADDQ will be defined.
*/
+#ifdef __HAVE_ATOMIC64_OP
#define ISC_PLATFORM_HAVEXADDQ 1
+#endif
/*
* If the "atomic swap" operation is available on this architecture,