1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

libssh2_priv.h: add iovec on 3ds (#575)

file: libssh2_priv.h
note: include iovec for 3DS
credit: Mary Mstrodl
This commit is contained in:
Mary
2021-04-22 16:20:43 -04:00
committed by GitHub
parent 5627b82be6
commit 91393d6631

View File

@@ -109,14 +109,19 @@
#define inline __inline #define inline __inline
#endif #endif
/* Provide iovec / writev on WIN32 platform. */ /* 3DS doesn't seem to have iovec */
#ifdef WIN32 #if defined(WIN32) || defined(_3DS)
struct iovec { struct iovec {
size_t iov_len; size_t iov_len;
void *iov_base; void *iov_base;
}; };
#endif
/* Provide iovec / writev on WIN32 platform. */
#ifdef WIN32
static inline int writev(int sock, struct iovec *iov, int nvecs) static inline int writev(int sock, struct iovec *iov, int nvecs)
{ {
DWORD ret; DWORD ret;