X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Futil.h;h=7bff1b5d21c5a4929920992ee45fe226683ec92f;hp=e32496a500ce95c809577d4d88edee9885078dea;hb=161e7cdd2c0d3b3c1025da452a3192d381297465;hpb=4f953b223bed60d71a7689d414ccb5cc60be537f diff --git a/src/util.h b/src/util.h index e32496a5..7bff1b5d 100644 --- a/src/util.h +++ b/src/util.h @@ -299,7 +299,15 @@ full_pread(filedes_t fd, void *buf, size_t nbyte, off_t offset); extern size_t full_pwrite(filedes_t fd, const void *buf, size_t count, off_t offset); +#ifdef __WIN32__ +struct iovec { + void *iov_base; + size_t iov_len; +}; +#else struct iovec; +#endif + extern size_t full_writev(int fd, struct iovec *iov, int iovcnt);