tools: Fixes following build syscall change.
This commit is contained in:
@@ -18,6 +18,7 @@ using namespace FSShell;
|
|||||||
|
|
||||||
#if (!defined(__BEOS__) && !defined(__HAIKU__))
|
#if (!defined(__BEOS__) && !defined(__HAIKU__))
|
||||||
// The _kern_open() defined in libroot_build.so.
|
// The _kern_open() defined in libroot_build.so.
|
||||||
|
# define _kern_open _kernbuild_open
|
||||||
extern "C" int _kern_open(int fd, const char *path, int openMode,
|
extern "C" int _kern_open(int fd, const char *path, int openMode,
|
||||||
int perms);
|
int perms);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ using FSShell::to_platform_mode;
|
|||||||
|
|
||||||
#if (!defined(__BEOS__) && !defined(__HAIKU__))
|
#if (!defined(__BEOS__) && !defined(__HAIKU__))
|
||||||
// The _kern_read_stat() defined in libroot_build.so.
|
// The _kern_read_stat() defined in libroot_build.so.
|
||||||
|
# define _kern_read_stat _kernbuild_read_stat
|
||||||
extern "C" status_t _kern_read_stat(int fd, const char *path,
|
extern "C" status_t _kern_read_stat(int fd, const char *path,
|
||||||
bool traverseLink, struct stat *st, size_t statSize);
|
bool traverseLink, struct stat *st, size_t statSize);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -43,7 +43,11 @@
|
|||||||
|
|
||||||
|
|
||||||
#if (!defined(__BEOS__) && !defined(__HAIKU__))
|
#if (!defined(__BEOS__) && !defined(__HAIKU__))
|
||||||
# include "syscalls.h"
|
// Defined in libroot_build.so.
|
||||||
|
# define _kern_dup _kernbuild_dup
|
||||||
|
# define _kern_close _kernbuild_close
|
||||||
|
extern "C" int _kern_dup(int fd);
|
||||||
|
extern "C" status_t _kern_close(int fd);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# define HAIKU_USE_KERN_OPEN 1
|
# define HAIKU_USE_KERN_OPEN 1
|
||||||
|
# define _kern_open _kernbuild_open
|
||||||
extern int _kern_open(int fd, const char *path, int openMode, int perms);
|
extern int _kern_open(int fd, const char *path, int openMode, int perms);
|
||||||
|
|
||||||
#endif // !__BEOS__
|
#endif // !__BEOS__
|
||||||
|
|||||||
Reference in New Issue
Block a user