diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-10-02 19:35:39 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-10-02 19:35:39 +0000 |
commit | 2d185fd236e2717624715bfc2654c1397a9980d4 (patch) | |
tree | c2ad4986ed2ea64eca803f2d37155f391d3ef897 | |
parent | 12a27ab6fcabdc60f760ab4851f115f517855737 (diff) | |
download | build-2d185fd236e2717624715bfc2654c1397a9980d4.tar.gz build-2d185fd236e2717624715bfc2654c1397a9980d4.tar.bz2 build-2d185fd236e2717624715bfc2654c1397a9980d4.tar.xz build-2d185fd236e2717624715bfc2654c1397a9980d4.zip |
Damnit...ok...now it builds against the new libbu++.
Diffstat (limited to '')
-rw-r--r-- | src/build.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ | |||
4 | #include "bu/archive.h" | 4 | #include "bu/archive.h" |
5 | #include "bu/file.h" | 5 | #include "bu/file.h" |
6 | 6 | ||
7 | #include <stdlib.h> | ||
8 | |||
7 | subExceptionDef( BuildException ); | 9 | subExceptionDef( BuildException ); |
8 | 10 | ||
9 | Build::Build() : | 11 | Build::Build() : |
@@ -19,7 +21,7 @@ Build::~Build() | |||
19 | { | 21 | { |
20 | try | 22 | try |
21 | { | 23 | { |
22 | Bu::File f( sCacheName.c_str(), "wb" ); | 24 | Bu::File f( sCacheName.c_str(), Bu::File::Write ); |
23 | Bu::Archive ar( f, Bu::Archive::save ); | 25 | Bu::Archive ar( f, Bu::Archive::save ); |
24 | 26 | ||
25 | ar << cRequires; | 27 | ar << cRequires; |
@@ -41,7 +43,7 @@ void Build::setCache( const std::string &sFileName ) | |||
41 | 43 | ||
42 | try | 44 | try |
43 | { | 45 | { |
44 | Bu::File f( sCacheName.c_str(), "rb" ); | 46 | Bu::File f( sCacheName.c_str(), Bu::File::Read ); |
45 | Bu::Archive ar( f, Bu::Archive::load ); | 47 | Bu::Archive ar( f, Bu::Archive::load ); |
46 | 48 | ||
47 | ar >> cRequires; | 49 | ar >> cRequires; |