]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Include sys/time.h; needed on musl; fixes #11000 11005/head
authorOtto <otto.moerbeek@open-xchange.com>
Thu, 18 Nov 2021 14:42:18 +0000 (15:42 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Thu, 18 Nov 2021 14:42:18 +0000 (15:42 +0100)
pdns/recursordist/rec-taskqueue.cc
pdns/recursordist/taskqueue.hh

index 2705c59b854dfa941d3b590f291da37fdea33776..000af77dd603c6ea2661ada389b6682295e1f9a3 100644 (file)
@@ -76,7 +76,8 @@ void runTaskOnce(bool logErrors)
 void pushAlmostExpiredTask(const DNSName& qname, uint16_t qtype, time_t deadline)
 {
   ++s_almost_expired_tasks_pushed;
-  t_taskQueue.push({qname, qtype, deadline, true, resolve});
+  pdns::ResolveTask task{qname, qtype, deadline, true, resolve};
+  t_taskQueue.push(std::move(task));
 }
 
 uint64_t getTaskPushes()
index ec0c91d08894a7897202e5a01262bdbe0c519cb6..5bd53029b99ba718bd0f416e748b7e815710aff4 100644 (file)
@@ -21,6 +21,7 @@
  */
 #pragma once
 
+#include <sys/time.h>
 #include <thread>
 
 #include <boost/multi_index_container.hpp>