Portable includes.

git-svn-id: file:///svn/unbound/trunk@217 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-04-03 09:54:16 +00:00
parent 0b0dd88182
commit cd67cb6869
2 changed files with 3 additions and 1 deletions

View file

@ -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.

View file

@ -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 <stdio.h> /* defines printf for tests */
#include <time.h> /* defines time_t for timings in the test */
#include <stdint.h> /* defines uint32_t etc */
/*#include <stdint.h> defines uint32_t etc (from config.h) */
#include <sys/param.h> /* attempt to define endianness */
#ifdef linux
# include <endian.h> /* attempt to define endianness */