From 2d185fd236e2717624715bfc2654c1397a9980d4 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 2 Oct 2008 19:35:39 +0000 Subject: Damnit...ok...now it builds against the new libbu++. --- src/build.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/build.cpp b/src/build.cpp index c92d804..e3ead80 100644 --- a/src/build.cpp +++ b/src/build.cpp @@ -4,6 +4,8 @@ #include "bu/archive.h" #include "bu/file.h" +#include + subExceptionDef( BuildException ); Build::Build() : @@ -19,7 +21,7 @@ Build::~Build() { try { - Bu::File f( sCacheName.c_str(), "wb" ); + Bu::File f( sCacheName.c_str(), Bu::File::Write ); Bu::Archive ar( f, Bu::Archive::save ); ar << cRequires; @@ -41,7 +43,7 @@ void Build::setCache( const std::string &sFileName ) try { - Bu::File f( sCacheName.c_str(), "rb" ); + Bu::File f( sCacheName.c_str(), Bu::File::Read ); Bu::Archive ar( f, Bu::Archive::load ); ar >> cRequires; -- cgit v1.2.3