]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- corrected a minor typo in the changelog.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 16 Mar 2018 06:46:56 +0000 (06:46 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 16 Mar 2018 06:46:56 +0000 (06:46 +0000)
- move htobe64/be64toh portability code to cachedb.c.

git-svn-id: file:///svn/unbound/trunk@4591 be551aaa-1e26-0410-a405-d3ace91eadb9

cachedb/cachedb.c
cachedb/redis.c
doc/Changelog

index 0c710c6c8e884f1491dce1e171c7306ceffa0906..7eb0df4348d5963ed18e1857f372b76d5305cbe0 100644 (file)
 #include "sldns/wire2str.h"
 #include "sldns/sbuffer.h"
 
+/* header file for htobe64 */
+#ifdef HAVE_ENDIAN_H
+#  include <endian.h>
+#endif
+#ifdef HAVE_SYS_ENDIAN_H
+#  include <sys/endian.h>
+#endif
+#ifdef HAVE_LIBKERN_OSBYTEORDER_H
+/* In practice this is specific to MacOS X.  We assume it doesn't have
+* htobe64/be64toh but has alternatives with a different name. */
+#  include <libkern/OSByteOrder.h>
+#  define htobe64(x) OSSwapHostToBigInt64(x)
+#  define be64toh(x) OSSwapBigToHostInt64(x)
+#endif
+
 /** the unit test testframe for cachedb, its module state contains
  * a cache for a couple queries (in memory). */
 struct testframe_moddata {
index fa5528c56335fc0f95c12bc4b95871f43c4fd0ae..3dfbf8f7a25c6e630f945477005fecf0d6803648 100644 (file)
 #include "util/config_file.h"
 #include "sldns/sbuffer.h"
 
-/* header file for htobe64 */
-#ifdef HAVE_ENDIAN_H
-#  include <endian.h>
-#endif
-#ifdef HAVE_SYS_ENDIAN_H
-#  include <sys/endian.h>
-#endif
-#ifdef HAVE_LIBKERN_OSBYTEORDER_H
-/* In practice this is specific to MacOS X.  We assume it doesn't have
-* htobe64/be64toh but has alternatives with a different name. */
-#  include <libkern/OSByteOrder.h>
-#  define htobe64(x) OSSwapHostToBigInt64(x)
-#  define be64toh(x) OSSwapBigToHostInt64(x)
-#endif
-
 #ifdef USE_REDIS
 #include "hiredis/hiredis.h"
 
index 478f12c233aadceeba348e3decc15c976ca6f9d3..24f90c7535b211fe9f8cefce9901742555524a0b 100644 (file)
@@ -1,5 +1,9 @@
+16 March 2018: Wouter
+       - corrected a minor typo in the changelog.
+       - move htobe64/be64toh portability code to cachedb.c.
+
 15 March 2018: Wouter
-       - Add --with-libhiredis, unbound support for a new cached backend
+       - Add --with-libhiredis, unbound support for a new cachedb backend
          that uses a Redis server as the storage.  This implementation
          depends on the hiredis client library (https://redislabs.com/lp/hiredis/).
          And unbound should be built with both --enable-cachedb and