From 136b2bfcdcf0708b65a6fce47251e013e4de06b4 Mon Sep 17 00:00:00 2001 From: James Housley Date: Thu, 14 Jun 2007 22:50:32 +0000 Subject: [PATCH] Some older BSD systems, OS X 10.3.9 for example, need before . And is needed for iovec --- src/libssh2_priv.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libssh2_priv.h b/src/libssh2_priv.h index 39a1c32..a205c73 100644 --- a/src/libssh2_priv.h +++ b/src/libssh2_priv.h @@ -51,6 +51,8 @@ http://www.mail-archive.com/libssh2-devel%40lists.sourceforge.net/msg00003.html http://www.mail-archive.com/libssh2-devel%40lists.sourceforge.net/msg00224.html */ +#include + #ifdef HAVE_POLL # include #else @@ -68,7 +70,10 @@ #include "libssh2_publickey.h" #include "libssh2_sftp.h" -#include +/* Needed for struct iovec on some platforms */ +#ifdef HAVE_SYS_UIO_H +#include +#endif #ifdef HAVE_SYS_SOCKET_H # include