From 52a2f41320d1fe35ceccaef35db9fd661f8bffb6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 4 May 2005 16:33:20 +0000 Subject: [PATCH] * Include some required header files. --- src/nix-env/main.cc | 3 ++- src/nix-env/profiles.cc | 1 + src/nix-store/main.cc | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc index 71c22d1a5..0d84bc610 100644 --- a/src/nix-env/main.cc +++ b/src/nix-env/main.cc @@ -11,6 +11,7 @@ #include #include +#include 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 1039634d6..6db291b3d 100644 --- a/src/nix-env/profiles.cc +++ b/src/nix-env/profiles.cc @@ -4,6 +4,7 @@ #include #include #include +#include static bool cmpGensByNumber(const Generation & a, const Generation & b) diff --git a/src/nix-store/main.cc b/src/nix-store/main.cc index 87fbe58b1..a6ff117cb 100644 --- a/src/nix-store/main.cc +++ b/src/nix-store/main.cc @@ -1,4 +1,5 @@ #include +#include #include "globals.hh" #include "build.hh"