Fix building on Haiku after hrev54993
Build tested on Linux. Change-Id: I911ac42d99a0c1e94cab77dc29bf43d8f7f91093
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user