about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/archive.cc2
-rw-r--r--src/pathlocks.cc2
-rw-r--r--src/references.cc1
-rw-r--r--src/util.cc2
4 files changed, 7 insertions, 0 deletions
diff --git a/src/archive.cc b/src/archive.cc
index 9170ca3ad650..4a6211e00eda 100644
--- a/src/archive.cc
+++ b/src/archive.cc
@@ -1,3 +1,5 @@
+#include <cerrno>
+#include <algorithm>
 #include <vector>
 
 #include <sys/types.h>
diff --git a/src/pathlocks.cc b/src/pathlocks.cc
index 78aae26bdb64..93f456ace693 100644
--- a/src/pathlocks.cc
+++ b/src/pathlocks.cc
@@ -1,3 +1,5 @@
+#include <cerrno>
+
 #include <fcntl.h>
 
 #include "pathlocks.hh"
diff --git a/src/references.cc b/src/references.cc
index 8934d53061cd..be432665b884 100644
--- a/src/references.cc
+++ b/src/references.cc
@@ -1,3 +1,4 @@
+#include <cerrno>
 #include <map>
 
 #include <sys/types.h>
diff --git a/src/util.cc b/src/util.cc
index f2cdb1d72345..bedd031def3d 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -1,4 +1,6 @@
 #include <iostream>
+#include <cerrno>
+#include <cstdio>
 
 #include <sys/types.h>
 #include <sys/stat.h>