diff src/lib/compat.h @ 1669:a0dd52443420 HEAD

Added pwrite() compatibility
author Timo Sirainen <tss@iki.fi>
date Wed, 06 Aug 2003 22:46:51 +0300
parents 836c952e17ec
children 82e19ad18784
line wrap: on
line diff
--- a/src/lib/compat.h	Wed Aug 06 22:46:27 2003 +0300
+++ b/src/lib/compat.h	Wed Aug 06 22:46:51 2003 +0300
@@ -94,6 +94,11 @@
 ssize_t my_writev(int fd, const struct iovec *iov, int iov_len);
 #endif
 
+#ifndef HAVE_PWRITE
+ssize_t pread(int fd, void *buf, size_t count, off_t offset);
+ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset);
+#endif
+
 /* ctype.h isn't safe with signed chars,
    use our own instead if really needed */
 #define i_toupper(x) ((char) toupper((int) (unsigned char) (x)))