diff --git a/example/direct_tcpip.c b/example/direct_tcpip.c index 224798a..ebdde90 100644 --- a/example/direct_tcpip.c +++ b/example/direct_tcpip.c @@ -1,29 +1,14 @@ #include -#ifdef HAVE_CONFIG_H -#include "libssh2_config.h" -#endif - -#include - -#ifdef HAVE_WINSOCK2_H -# include -# include -#endif -#ifdef HAVE_SYS_SOCKET_H -# include -#endif -#ifdef HAVE_NETINET_IN_H -# include -#endif -# ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_ARPA_INET_H -# include -#endif -#ifdef HAVE_SYS_TIME_H -# include +#ifdef WIN32 +#include +#include +#include +#else +#include +#include +#include +#include #endif #include @@ -31,6 +16,7 @@ #include #include #include +#include const char *keyfile1 = "/home/username/.ssh/id_rsa.pub"; const char *keyfile2 = "/home/username/.ssh/id_rsa";