mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-20 02:42:09 +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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user