From 2f8f3cca82df9b5b53994545933f3303f92b77fe Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 28 Oct 2015 10:37:53 +0000 Subject: [PATCH] Fixup nothread compile on Linux. git-svn-id: file:///svn/unbound/trunk@3524 be551aaa-1e26-0410-a405-d3ace91eadb9 --- libunbound/libunbound.c | 3 +++ testcode/lock_verify.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libunbound/libunbound.c b/libunbound/libunbound.c index 7c2509ba8..17f50e8e8 100644 --- a/libunbound/libunbound.c +++ b/libunbound/libunbound.c @@ -68,6 +68,9 @@ #ifdef HAVE_SYS_WAIT_H #include #endif +#ifdef HAVE_TIME_H +#include +#endif #if defined(UB_ON_WINDOWS) && defined (HAVE_WINDOWS_H) #include diff --git a/testcode/lock_verify.c b/testcode/lock_verify.c index a46d5d99e..786d523c3 100644 --- a/testcode/lock_verify.c +++ b/testcode/lock_verify.c @@ -44,6 +44,9 @@ */ #include "config.h" +#ifdef HAVE_TIME_H +#include +#endif #include "util/log.h" #include "util/rbtree.h" #include "util/locks.h" -- 2.47.2