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);