about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/normalise.cc1
-rw-r--r--src/nix-env/profiles.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/normalise.cc b/src/libstore/normalise.cc
index 682ea2a80e6a..d91e5ea268ae 100644
--- a/src/libstore/normalise.cc
+++ b/src/libstore/normalise.cc
@@ -7,6 +7,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include <errno.h>
 
 #include "normalise.hh"
 #include "references.hh"
diff --git a/src/nix-env/profiles.cc b/src/nix-env/profiles.cc
index d47c528b2d2c..1eeddf3326bd 100644
--- a/src/nix-env/profiles.cc
+++ b/src/nix-env/profiles.cc
@@ -3,6 +3,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <errno.h>
 
 
 static bool cmpGensByNumber(const Generation & a, const Generation & b)