diff --git a/headers/build/BeOSBuildCompatibility.h b/headers/build/BeOSBuildCompatibility.h index 8a6b8ff571..5eff06a5c8 100644 --- a/headers/build/BeOSBuildCompatibility.h +++ b/headers/build/BeOSBuildCompatibility.h @@ -52,9 +52,9 @@ extern size_t strnlen(const char* string, size_t length); 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, - size_t count); + int count); extern ssize_t writev_pos(int fd, off_t pos, const struct iovec* vec, - size_t count); + int count); // 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 517668a90c..dadcbd7e5b 100644 --- a/src/build/libroot/fs.cpp +++ b/src/build/libroot/fs.cpp @@ -1208,7 +1208,7 @@ write_pos(int fd, off_t pos, const void *buffer, size_t bufferSize) // readv_pos ssize_t -readv_pos(int fd, off_t pos, const struct iovec *vec, size_t count) +readv_pos(int fd, off_t pos, const struct iovec *vec, int count) { // seek off_t result = lseek(fd, pos, SEEK_SET); @@ -1227,7 +1227,7 @@ readv_pos(int fd, off_t pos, const struct iovec *vec, size_t count) // writev_pos ssize_t -writev_pos(int fd, off_t pos, const struct iovec *vec, size_t count) +writev_pos(int fd, off_t pos, const struct iovec *vec, int count) { // seek off_t result = lseek(fd, pos, SEEK_SET);