removed ENOTCONN define, added HAVE_IOCTLSOCKET define;
added the new defines for inclusion of headers.
This commit is contained in:
parent
4e920fe2be
commit
3026c46109
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef LIBSSH2_CONFIG_H
|
||||||
|
#define LIBSSH2_CONFIG_H
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#define WIN32
|
#define WIN32
|
||||||
#endif
|
#endif
|
||||||
@ -6,10 +9,14 @@
|
|||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
#define ENOTCONN WSAENOTCONN
|
|
||||||
#define WINSOCK_VERSION MAKEWORD(2,0)
|
#define WINSOCK_VERSION MAKEWORD(2,0)
|
||||||
|
#define HAVE_UNISTD_H
|
||||||
|
#define HAVE_INTTYPES_H
|
||||||
|
#define HAVE_SYS_TIME_H
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define HAVE_IOCTLSOCKET
|
||||||
|
|
||||||
/* same as WSABUF */
|
/* same as WSABUF */
|
||||||
struct iovec {
|
struct iovec {
|
||||||
u_long iov_len;
|
u_long iov_len;
|
||||||
@ -34,7 +41,7 @@ static inline int usleep(int udelay)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
|
|
||||||
/* Compile in zlib support */
|
/* Compile in zlib support */
|
||||||
#define LIBSSH2_HAVE_ZLIB 1
|
#define LIBSSH2_HAVE_ZLIB 1
|
||||||
@ -42,3 +49,6 @@ static inline int usleep(int udelay)
|
|||||||
/* Enable newer diffie-hellman-group-exchange-sha1 syntax */
|
/* Enable newer diffie-hellman-group-exchange-sha1 syntax */
|
||||||
#define LIBSSH2_DH_GEX_NEW 1
|
#define LIBSSH2_DH_GEX_NEW 1
|
||||||
|
|
||||||
|
#endif /* LIBSSH2_CONFIG_H */
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user