From ebf33922cdd5e80a3365a5387d95feef63476b5e Mon Sep 17 00:00:00 2001
From: Lars Kanis <kanis@comcard.de>
Date: Thu, 6 Jul 2017 18:16:25 +0200
Subject: [PATCH] Enable inet_pton() definition in MINGW i686 build

---
 src/tds/tls.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/tds/tls.c b/src/tds/tls.c
index a44ac6c..0003291 100644
--- a/src/tds/tls.c
+++ b/src/tds/tls.c
@@ -20,6 +20,9 @@
 
 #include <config.h>
 
+/* enabled some additional definitions for inet_pton */
+#define _WIN32_WINNT 0x601
+
 #include <stdio.h>
 
 #if HAVE_ERRNO_H
-- 
2.6.2.windows.1

