about summary refs log tree commit diff
path: root/src/nix-env/profiles.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-env/profiles.cc')
-rw-r--r--src/nix-env/profiles.cc1
1 files changed, 1 insertions, 0 deletions
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)