]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup nothread compile on Linux.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 28 Oct 2015 10:37:53 +0000 (10:37 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 28 Oct 2015 10:37:53 +0000 (10:37 +0000)
git-svn-id: file:///svn/unbound/trunk@3524 be551aaa-1e26-0410-a405-d3ace91eadb9

libunbound/libunbound.c
testcode/lock_verify.c

index 7c2509ba8d504cc72267e93aa21c51e50acca5d9..17f50e8e81db8abccf46873ffa7d97388787a678 100644 (file)
@@ -68,6 +68,9 @@
 #ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
 
 #if defined(UB_ON_WINDOWS) && defined (HAVE_WINDOWS_H)
 #include <windows.h>
index a46d5d99ea9354d6f59e49d1aea8ff449a2b6d3d..786d523c3118be73f2fcc514b4009ae938eda7f0 100644 (file)
@@ -44,6 +44,9 @@
  */
 
 #include "config.h"
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
 #include "util/log.h"
 #include "util/rbtree.h"
 #include "util/locks.h"