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
This commit is contained in:
parent
596ba08220
commit
0a54a1a530
@ -1,3 +1,3 @@
|
||||
SubDir HAIKU_TOP src tools anyboot ;
|
||||
|
||||
BuildPlatformMain <build>anyboot : anyboot.cpp : ;
|
||||
BuildPlatformMain <build>anyboot : anyboot.cpp : $(HOST_LIBSUPC++) ;
|
||||
|
@ -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 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user