Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib/compat.h @ 410:1f0e7229ee58 HEAD
Split IOBuffer into mmaped IBuffer, file IBuffer, memory data IBuffer and
file OBuffer.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 14 Oct 2002 02:49:11 +0300 |
parents | f0f49949009b |
children | 83d4617e1dca |
line wrap: on
line diff
--- a/src/lib/compat.h Sun Oct 13 18:52:19 2002 +0300 +++ b/src/lib/compat.h Mon Oct 14 02:49:11 2002 +0300 @@ -62,6 +62,19 @@ int my_getpagesize(void); #endif +#ifndef HAVE_STRUCT_IOVEC +struct iovec { + void *iov_base; + size_t iov_len; +}; +#endif + +#ifndef HAVE_WRITEV +# define writev my_writev +struct iovec; +ssize_t my_writev(int fd, const struct iovec *iov, size_t iov_len); +#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)))