From 372b4a1c12e8d1f1b3839e0400aa13183994158f Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 29 Feb 2008 10:22:07 +0000 Subject: [PATCH] portability. git-svn-id: file:///svn/unbound/trunk@1005 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + testcode/harvest.c | 4 ++-- testcode/perf.c | 2 +- util/configlexer.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 377255435..f0fda605a 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 29 February 2008: Wouter - documentation update. + - fixup port to Solaris of perf test tool. 28 February 2008: Wouter - fixed memory leaks in libunbound (during cancellation and wait). diff --git a/testcode/harvest.c b/testcode/harvest.c index 5b19608d2..4944cba66 100644 --- a/testcode/harvest.c +++ b/testcode/harvest.c @@ -68,11 +68,11 @@ * This creates a snapshot that represents the data as this resolver saw it. */ -#include #include "config.h" +#include #include "libunbound/unbound.h" #ifdef HAVE_SYS_STAT_H -#include "sys/stat.h" +#include #endif struct todo_item; struct labdata; diff --git a/testcode/perf.c b/testcode/perf.c index 5462cbc83..39ce1aa8d 100644 --- a/testcode/perf.c +++ b/testcode/perf.c @@ -39,8 +39,8 @@ * This program estimates DNS name server performance. */ -#include #include "config.h" +#include #include "util/log.h" #include "util/locks.h" #include "util/net_help.h" diff --git a/util/configlexer.c b/util/configlexer.c index fdcdfa3f5..63d1dde1c 100644 --- a/util/configlexer.c +++ b/util/configlexer.c @@ -94,7 +94,7 @@ typedef unsigned int flex_uint32_t; #else /* ! __cplusplus */ -#if __STDC__ +#ifdef __STDC__ #define YY_USE_CONST -- 2.47.2