diff --git a/headers/build/BeOSBuildCompatibility.h b/headers/build/BeOSBuildCompatibility.h index 5eff06a5c8..197309ab06 100644 --- a/headers/build/BeOSBuildCompatibility.h +++ b/headers/build/BeOSBuildCompatibility.h @@ -49,12 +49,14 @@ extern size_t strnlen(const char* string, size_t length); #endif // BeOS only +#if !defined(HAIKU_HOST_PLATFORM_HAIKU) extern ssize_t read_pos(int fd, off_t pos, void* buffer, size_t count); extern ssize_t write_pos(int fd, off_t pos, const void* buffer, size_t count); extern ssize_t readv_pos(int fd, off_t pos, const struct iovec* vec, int count); extern ssize_t writev_pos(int fd, off_t pos, const struct iovec* vec, int count); +#endif // There's no O_NOTRAVERSE under Linux and FreeBSD -- we replace it with a flag diff --git a/src/build/libroot/fs.cpp b/src/build/libroot/fs.cpp index dadcbd7e5b..12c8550242 100644 --- a/src/build/libroot/fs.cpp +++ b/src/build/libroot/fs.cpp @@ -1155,6 +1155,7 @@ _kern_unlock_node(int fd) // #pragma mark - +#if !defined(HAIKU_HOST_PLATFORM_HAIKU) // read_pos ssize_t read_pos(int fd, off_t pos, void *buffer, size_t bufferSize) @@ -1243,6 +1244,7 @@ writev_pos(int fd, off_t pos, const struct iovec *vec, int count) return bytesWritten; } +#endif // #pragma mark -