]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Better fix.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Nov 2018 13:46:44 +0000 (13:46 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Nov 2018 13:46:44 +0000 (13:46 +0000)
git-svn-id: file:///svn/unbound/trunk@4987 be551aaa-1e26-0410-a405-d3ace91eadb9

util/data/msgencode.c

index 3d91680bd714ab9bb7bebf3102f1d6d73d9b5d51..4c0a5550be13354f95a5085bb6a21c4ac90f59ef 100644 (file)
 #include "sldns/sbuffer.h"
 #include "services/localzone.h"
 
-#ifdef HAVE_SYS_TYPES_H
-#  include <sys/types.h>
+#ifdef HAVE_TIME_H
+#include <time.h>
 #endif
+#include <sys/time.h>
 
 /** return code that means the function ran out of memory. negative so it does
  * not conflict with DNS rcodes. */