From e45bddb9fd654fa696b8e2542a4ad796ed088c25 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 11 Nov 2008 22:32:33 +0000 Subject: [PATCH] avoid duplicate function declarations on windows --- src/libssh2_priv.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/libssh2_priv.h b/src/libssh2_priv.h index 12b594d4..7270d924 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) {