diff --git a/lib/roken/roken.h b/lib/roken/roken.h index c473fca8f..7df5c98e6 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -51,6 +51,9 @@ #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_SYS_UIO_H +#include +#endif #ifdef HAVE_GRP_H #include #endif @@ -75,6 +78,10 @@ #include #endif +#ifdef HAVE_ERRNO_H +#include +#endif + #ifdef HAVE_TERMIOS_H #include #endif @@ -236,6 +243,16 @@ int rcmd(char **ahost, unsigned short inport, const char *locuser, const char *remuser, const char *cmd, int *fd2p); #endif +#ifndef HAVE_WRITEV +ssize_t +writev(int d, const struct iovec *iov, int iovcnt); +#endif + +#ifndef HAVE_READV +ssize_t +readv(int d, const struct iovec *iov, int iovcnt) +#endif + #ifndef HAVE_FLOCK #ifndef LOCK_SH #define LOCK_SH 1 /* Shared lock */ diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index c473fca8f..7df5c98e6 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -51,6 +51,9 @@ #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_SYS_UIO_H +#include +#endif #ifdef HAVE_GRP_H #include #endif @@ -75,6 +78,10 @@ #include #endif +#ifdef HAVE_ERRNO_H +#include +#endif + #ifdef HAVE_TERMIOS_H #include #endif @@ -236,6 +243,16 @@ int rcmd(char **ahost, unsigned short inport, const char *locuser, const char *remuser, const char *cmd, int *fd2p); #endif +#ifndef HAVE_WRITEV +ssize_t +writev(int d, const struct iovec *iov, int iovcnt); +#endif + +#ifndef HAVE_READV +ssize_t +readv(int d, const struct iovec *iov, int iovcnt) +#endif + #ifndef HAVE_FLOCK #ifndef LOCK_SH #define LOCK_SH 1 /* Shared lock */