From cd67cb686980cf9e597da7f0ba22db07c798c8e1 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 3 Apr 2007 09:54:16 +0000 Subject: [PATCH] Portable includes. git-svn-id: file:///svn/unbound/trunk@217 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + util/storage/lookup3.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 7b821d7d7..f1097aefd 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -5,6 +5,7 @@ Detects unsigned or signed using math trick. - constants for DNS flags. - compilation without locks fixup. + - removed include of unportable header from lookup3.c. 2 April 2007: Wouter - check sizes of udp received messages, not too short. diff --git a/util/storage/lookup3.c b/util/storage/lookup3.c index 569ec8ae1..2a25690cf 100644 --- a/util/storage/lookup3.c +++ b/util/storage/lookup3.c @@ -2,6 +2,7 @@ March 2007(Wouter) adapted from lookup3.c original, add config.h include. added #ifdef VALGRIND to remove 298,384,660 'unused variable k8' warnings. added include of lookup3.h to check definitions match declarations. + removed include of stdint - config.h takes care of platform independence. url http://burtleburtle.net/bob/hash/index.html. */ /* @@ -45,7 +46,7 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy. #include "util/storage/lookup3.h" #include /* defines printf for tests */ #include /* defines time_t for timings in the test */ -#include /* defines uint32_t etc */ +/*#include defines uint32_t etc (from config.h) */ #include /* attempt to define endianness */ #ifdef linux # include /* attempt to define endianness */ -- 2.47.2