From 0a54a1a530d66795edf976c4db56b82a3b294c3f Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 28 Feb 2010 20:49:08 +0000 Subject: [PATCH] Fix missing stdint include, missing open mode flags and libsupc++ linking. Thanks to luroh and mmadia for testing! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35674 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/anyboot/Jamfile | 2 +- src/tools/anyboot/anyboot.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tools/anyboot/Jamfile b/src/tools/anyboot/Jamfile index c4713f2cea..f8207acba6 100644 --- a/src/tools/anyboot/Jamfile +++ b/src/tools/anyboot/Jamfile @@ -1,3 +1,3 @@ SubDir HAIKU_TOP src tools anyboot ; -BuildPlatformMain anyboot : anyboot.cpp : ; +BuildPlatformMain anyboot : anyboot.cpp : $(HOST_LIBSUPC++) ; diff --git a/src/tools/anyboot/anyboot.cpp b/src/tools/anyboot/anyboot.cpp index d100d914d5..17af4ed2c0 100644 --- a/src/tools/anyboot/anyboot.cpp +++ b/src/tools/anyboot/anyboot.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -57,7 +58,8 @@ main(int argc, char *argv[]) static const size_t kBlockSize = 512; - int outputFile = open(argv[1], O_WRONLY | O_TRUNC | O_CREAT); + int outputFile = open(argv[1], O_WRONLY | O_TRUNC | O_CREAT, + S_IRUSR | S_IWUSR); checkError(outputFile < 0, "failed to open output file"); int isoFile = open(argv[2], O_RDONLY);