mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
- corrected a minor typo in the changelog.
- move htobe64/be64toh portability code to cachedb.c. git-svn-id: file:///svn/unbound/trunk@4591 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
554b8b35ae
commit
e1e629e592
3 changed files with 20 additions and 16 deletions
|
|
@ -57,6 +57,21 @@
|
||||||
#include "sldns/wire2str.h"
|
#include "sldns/wire2str.h"
|
||||||
#include "sldns/sbuffer.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
|
/** the unit test testframe for cachedb, its module state contains
|
||||||
* a cache for a couple queries (in memory). */
|
* a cache for a couple queries (in memory). */
|
||||||
struct testframe_moddata {
|
struct testframe_moddata {
|
||||||
|
|
|
||||||
|
|
@ -48,21 +48,6 @@
|
||||||
#include "util/config_file.h"
|
#include "util/config_file.h"
|
||||||
#include "sldns/sbuffer.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
|
#ifdef USE_REDIS
|
||||||
#include "hiredis/hiredis.h"
|
#include "hiredis/hiredis.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
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
|
that uses a Redis server as the storage. This implementation
|
||||||
depends on the hiredis client library (https://redislabs.com/lp/hiredis/).
|
depends on the hiredis client library (https://redislabs.com/lp/hiredis/).
|
||||||
And unbound should be built with both --enable-cachedb and
|
And unbound should be built with both --enable-cachedb and
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue