diff --git a/src/common/dns_utils.h b/src/common/dns_utils.h
index 61e1358ca..f19584516 100644
--- a/src/common/dns_utils.h
+++ b/src/common/dns_utils.h
@@ -29,6 +29,7 @@
 
 #include <vector>
 #include <string>
+#include <functional>
 
 namespace tools
 {
diff --git a/src/common/updates.cpp b/src/common/updates.cpp
index 5b1acf5fa..8a057b1cf 100644
--- a/src/common/updates.cpp
+++ b/src/common/updates.cpp
@@ -26,6 +26,7 @@
 // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
 // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+#include "misc_log_ex.h"
 #include "util.h"
 #include "dns_utils.h"
 #include "updates.h"