Author: mmlr Date: 2010-02-28 21:49:08 +0100 (Sun, 28 Feb 2010) New Revision: 35674 Changeset: http://dev.haiku-os.org/changeset/35674/haiku Modified: haiku/trunk/src/tools/anyboot/Jamfile haiku/trunk/src/tools/anyboot/anyboot.cpp Log: Fix missing stdint include, missing open mode flags and libsupc++ linking. Thanks to luroh and mmadia for testing! Modified: haiku/trunk/src/tools/anyboot/Jamfile =================================================================== --- haiku/trunk/src/tools/anyboot/Jamfile 2010-02-28 20:19:44 UTC (rev 35673) +++ haiku/trunk/src/tools/anyboot/Jamfile 2010-02-28 20:49:08 UTC (rev 35674) @@ -1,3 +1,3 @@ SubDir HAIKU_TOP src tools anyboot ; -BuildPlatformMain <build>anyboot : anyboot.cpp : ; +BuildPlatformMain <build>anyboot : anyboot.cpp : $(HOST_LIBSUPC++) ; Modified: haiku/trunk/src/tools/anyboot/anyboot.cpp =================================================================== --- haiku/trunk/src/tools/anyboot/anyboot.cpp 2010-02-28 20:19:44 UTC (rev 35673) +++ haiku/trunk/src/tools/anyboot/anyboot.cpp 2010-02-28 20:49:08 UTC (rev 35674) @@ -1,6 +1,7 @@ #include <errno.h> #include <fcntl.h> #include <unistd.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -57,7 +58,8 @@ 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);