Fix building on Haiku after hrev54993

Build tested on Linux.

Change-Id: I911ac42d99a0c1e94cab77dc29bf43d8f7f91093
This commit is contained in:
Niels Sascha Reedijk
2021-03-24 11:19:25 +00:00
parent 552e0ac095
commit f97357a6ed
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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);