From 3026c4610918eec05c6ec52482ff7c096f3e5896 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Thu, 12 Apr 2007 21:37:09 +0000 Subject: [PATCH] removed ENOTCONN define, added HAVE_IOCTLSOCKET define; added the new defines for inclusion of headers. --- win32/libssh2_config.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/win32/libssh2_config.h b/win32/libssh2_config.h index 04a55541..512644c7 100644 --- a/win32/libssh2_config.h +++ b/win32/libssh2_config.h @@ -1,15 +1,22 @@ -#ifndef WIN32 -#define WIN32 +#ifndef LIBSSH2_CONFIG_H +#define LIBSSH2_CONFIG_H + +#ifndef WIN32 +#define WIN32 #endif #include #include #include #ifdef __MINGW32__ -#define ENOTCONN WSAENOTCONN #define WINSOCK_VERSION MAKEWORD(2,0) +#define HAVE_UNISTD_H +#define HAVE_INTTYPES_H +#define HAVE_SYS_TIME_H #endif +#define HAVE_IOCTLSOCKET + /* same as WSABUF */ struct iovec { u_long iov_len; @@ -34,7 +41,7 @@ static inline int usleep(int udelay) return 0; } -#define snprintf _snprintf +#define snprintf _snprintf /* Compile in zlib support */ #define LIBSSH2_HAVE_ZLIB 1 @@ -42,3 +49,6 @@ static inline int usleep(int udelay) /* Enable newer diffie-hellman-group-exchange-sha1 syntax */ #define LIBSSH2_DH_GEX_NEW 1 +#endif /* LIBSSH2_CONFIG_H */ + +