/* * Portability wrapper around . * * Provides a definition of the iovec struct for platforms that don't have it * (primarily Windows). Currently, the corresponding readv and writev * functions are not provided or prototyped here. * * Written by Russ Allbery * This work is hereby placed in the public domain by its author. */ #ifndef PORTABLE_UIO_H #define PORTABLE_UIO_H 1 #include /* remctl.h provides its own definition of this struct on Windows. */ #if defined(HAVE_SYS_UIO_H) # include #elif !defined(REMCTL_H) struct iovec { void *iov_base; size_t iov_len; }; #endif #endif /* !PORTABLE_UIO_H */