Skip to content

Commit 6870d47

Browse files
committed
MinGW: Fix inet_pton also for 32-bit
1 parent fbab449 commit 6870d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/patches/freetds/1.00.21/0001-mingw_missing_inet_pton.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ index 0d11a33..b8ab2ba 100644
1010
+ * Add a workaround for older Mingw versions without inet_pton().
1111
+ * This means RubyInstallers DevKit-4.7.2 in particular.
1212
+ */
13-
+#if defined(__MINGW64_VERSION_MAJOR) && !defined(InetPtonA)
13+
+#if defined(__MINGW32__) && !defined(InetPtonA)
1414
+ #include <windows.h>
1515
+
1616
+ static HMODULE ws2_32 = NULL;

0 commit comments

Comments
 (0)