diff --git a/src/libssh2_priv.h b/src/libssh2_priv.h index 12b594d..7270d92 100644 --- a/src/libssh2_priv.h +++ b/src/libssh2_priv.h @@ -127,26 +127,11 @@ static inline int writev(int sock, struct iovec *iov, int nvecs) #include #include -/* same as WSABUF */ -struct iovec { - u_long iov_len; - char *iov_base; -}; - #ifdef _MSC_VER /* "inline" keyword is valid only with C++ engine! */ #define inline __inline #endif -static inline int writev(int sock, struct iovec *iov, int nvecs) -{ - DWORD ret; - if (WSASend(sock, (LPWSABUF)iov, nvecs, &ret, 0, NULL, NULL) == 0) { - return ret; - } - return -1; -} - /* not really usleep, but safe for the way we use it in this lib */ static inline int usleep(int udelay) {