We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b4c454 commit 1bb17e9Copy full SHA for 1bb17e9
ports/patches/freetds/1.00.21/0001-mingw_missing_inet_pton.diff renamed to ports/patches/freetds/1.00.27/0001-mingw_missing_inet_pton.diff
@@ -1,16 +1,16 @@
1
diff --git a/src/tds/tls.c b/src/tds/tls.c
2
-index 0d11a33..b8ab2ba 100644
+index 09e7fa0..1da18f6 100644
3
--- a/src/tds/tls.c
4
+++ b/src/tds/tls.c
5
-@@ -72,6 +72,29 @@
6
- #define SSL_PTR bio->ptr
+@@ -101,6 +101,29 @@
+ #define SSL_PTR BIO_get_data(bio)
7
#endif
8
9
+/*
10
+ * Add a workaround for older Mingw versions without inet_pton().
11
+ * This means RubyInstallers DevKit-4.7.2 in particular.
12
+ */
13
-+#if defined(__MINGW64_VERSION_MAJOR) && !defined(InetPtonA)
++#if defined(__MINGW32__) && !defined(InetPtonA)
14
+ #include <windows.h>
15
+
16
+ static HMODULE ws2_32 = NULL;
0 commit comments