include <sys/uio.h> and <errno.h>
prototypes for readv and writev git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3721 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -51,6 +51,9 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_UIO_H
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
#ifdef HAVE_GRP_H
|
||||
#include <grp.h>
|
||||
#endif
|
||||
@@ -75,6 +78,10 @@
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ERRNO_H
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TERMIOS_H
|
||||
#include <termios.h>
|
||||
#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 */
|
||||
|
@@ -51,6 +51,9 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_UIO_H
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
#ifdef HAVE_GRP_H
|
||||
#include <grp.h>
|
||||
#endif
|
||||
@@ -75,6 +78,10 @@
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ERRNO_H
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TERMIOS_H
|
||||
#include <termios.h>
|
||||
#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 */
|
||||
|
Reference in New Issue
Block a user