build: follow-up for hrev54993
should help with bug #16929, untested Change-Id: Ia7b9b6cc8e84e2377d79c0edd1c278cdf74d869b Reviewed-on: https://review.haiku-os.org/c/haiku/+/3891 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
@@ -49,12 +49,14 @@ extern size_t strnlen(const char* string, size_t length);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// BeOS only
|
// 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 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 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,
|
extern ssize_t readv_pos(int fd, off_t pos, const struct iovec* vec,
|
||||||
int count);
|
int count);
|
||||||
extern ssize_t writev_pos(int fd, off_t pos, const struct iovec* vec,
|
extern ssize_t writev_pos(int fd, off_t pos, const struct iovec* vec,
|
||||||
int count);
|
int count);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// There's no O_NOTRAVERSE under Linux and FreeBSD -- we replace it with a flag
|
// There's no O_NOTRAVERSE under Linux and FreeBSD -- we replace it with a flag
|
||||||
|
|||||||
@@ -1155,6 +1155,7 @@ _kern_unlock_node(int fd)
|
|||||||
|
|
||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|
||||||
|
#if !defined(HAIKU_HOST_PLATFORM_HAIKU)
|
||||||
// read_pos
|
// read_pos
|
||||||
ssize_t
|
ssize_t
|
||||||
read_pos(int fd, off_t pos, void *buffer, size_t bufferSize)
|
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;
|
return bytesWritten;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|||||||
Reference in New Issue
Block a user