about summary refs log tree commit diff
path: root/src/nix-env
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-05-04T16·33+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-05-04T16·33+0000
commit52a2f41320d1fe35ceccaef35db9fd661f8bffb6 (patch)
tree74702f8371e5afdfa0e81795094e0f611a871202 /src/nix-env
parent26fd28432d61a88dcef5f3f79657c2caa9461a78 (diff)
* Include some required header files.
Diffstat (limited to 'src/nix-env')
-rw-r--r--src/nix-env/main.cc3
-rw-r--r--src/nix-env/profiles.cc1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc
index 71c22d1a51e0..0d84bc610dfd 100644
--- a/src/nix-env/main.cc
+++ b/src/nix-env/main.cc
@@ -11,6 +11,7 @@
 
 #include <cerrno>
 #include <ctime>
+#include <algorithm>
 
 
 typedef enum {
@@ -871,7 +872,7 @@ static void opDefaultExpr(Globals & globals,
 
 
 static string needArg(Strings::iterator & i,
-    const Strings & args, const string & arg)
+    Strings & args, const string & arg)
 {
     ++i;
     if (i == args.end()) throw UsageError(
diff --git a/src/nix-env/profiles.cc b/src/nix-env/profiles.cc
index 1039634d60ac..6db291b3d21c 100644
--- a/src/nix-env/profiles.cc
+++ b/src/nix-env/profiles.cc
@@ -4,6 +4,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <errno.h>
+#include <stdio.h>
 
 
 static bool cmpGensByNumber(const Generation & a, const Generation & b)