<commit_before>diff -ruN libssh-0.6.4/ConfigureChecks.cmake libssh-0.6.4-new/ConfigureChecks.cmake
--- libssh-0.6.4/ConfigureChecks.cmake	2014-12-19 01:11:17.000000000 -0700
+++ libssh-0.6.4-new/ConfigureChecks.cmake	2015-02-03 19:05:06.597698000 -0700
@@ -116,10 +116,11 @@
     if (HAVE_WSPIAPI_H OR HAVE_WS2TCPIP_H)
         set(HAVE_GETADDRINFO TRUE)
         set(HAVE_GETHOSTBYNAME TRUE)
-        if (MSVC)
+# Not sure when this should be true, but certainly after VS9
+        if (_MSC_VER GREATER 1500)
             set(HAVE_NTOHLL TRUE)
             set(HAVE_HTONLL TRUE)
-        endif (MSVC)
+        endif ()
     endif (HAVE_WSPIAPI_H OR HAVE_WS2TCPIP_H)
 
     set(HAVE_SELECT TRUE)
diff -ruN libssh-0.6.4/src/connect.c libssh-0.6.4-new/src/connect.c
--- libssh-0.6.4/src/connect.c	2014-12-05 02:42:06.000000000 -0700
+++ libssh-0.6.4-new/src/connect.c	2015-02-03 19:05:13.217698000 -0700
@@ -64,6 +64,10 @@
 #include <wspiapi.h>
 #endif<commit_msg>Fix build for vs12.<commit_after>diff -ruN libssh-0.6.4/ConfigureChecks.cmake libssh-0.6.4-new/ConfigureChecks.cmake
--- libssh-0.6.4/ConfigureChecks.cmake	2014-12-19 01:11:17.000000000 -0700
+++ libssh-0.6.4-new/ConfigureChecks.cmake	2015-03-29 09:26:15.475146100 -0600
@@ -102,6 +102,9 @@
 check_function_exists(poll HAVE_POLL)
 check_function_exists(select HAVE_SELECT)
 check_function_exists(getaddrinfo HAVE_GETADDRINFO)
+if (WIN32)
+  set(CMAKE_EXTRA_INCLUDE_FILES winsock2.h)
+endif ()
 check_function_exists(ntohll HAVE_NTOHLL)
 check_function_exists(htonll HAVE_HTONLL)
 
@@ -116,10 +119,13 @@
     if (HAVE_WSPIAPI_H OR HAVE_WS2TCPIP_H)
         set(HAVE_GETADDRINFO TRUE)
         set(HAVE_GETHOSTBYNAME TRUE)
-        if (MSVC)
+# check_function_exists not working above.  Believe these exist for
+# VS10 (16.0+) and greater.  Known to exist for VS12 (18.0+)
+        if (NOT (${CMAKE_C_COMPILER_VERSION} VERSION_LESS 16.0))
+            message(STATUS "Overriding HAVE_NTOHLL and HAVE_HTONLL.")
             set(HAVE_NTOHLL TRUE)
             set(HAVE_HTONLL TRUE)
-        endif (MSVC)
+        endif ()
     endif (HAVE_WSPIAPI_H OR HAVE_WS2TCPIP_H)
 
     set(HAVE_SELECT TRUE)
diff -ruN libssh-0.6.4/src/connect.c libssh-0.6.4-new/src/connect.c
--- libssh-0.6.4/src/connect.c	2014-12-05 02:42:06.000000000 -0700
+++ libssh-0.6.4-new/src/connect.c	2015-03-29 09:23:39.065199900 -0600
@@ -64,6 +64,10 @@
 #include <wspiapi.h>
 #endif
{'fraction_non_alphanumeric': 0.13692946058091288, 'fraction_numerical': 0.13817427385892117, 'mean_word_length': 3.229824561403509, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1849254', 'n_tokens_mistral': 1234, 'n_tokens_neox': 996, 'n_words': 170}