#endif
])
AC_CHECK_DECLS(readv, , , [
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
AC_CHECK_DECLS(writev, , , [
int BSDgetopt(int argc, char * const *argv, const char *opts);
#if defined(HAVE_DECL_READV) && HAVE_DECL_READV == 0
# include <sys/types.h>
# include <sys/uio.h>
int readv(int, struct iovec *, int);
#if defined(HAVE_DECL_WRITEV) && HAVE_DECL_WRITEV == 0