summarylogtreecommitdiffstats
path: root/0126-Set-_WIN32_WINNT-version-in-configure.ac.patch
blob: 73829c70edf3ff8c8ea22bbf7261f3df95dac869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 32c54c2c248fe463a4b0078cb945f1845178780a Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Sun, 1 Aug 2021 15:18:50 +0200
Subject: [PATCH 126/N] Set _WIN32_WINNT version in configure.ac

---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index 736e1b9..82bea12 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3470,6 +3470,11 @@ else
 fi])
 AC_MSG_RESULT($with_dbmliborder)
 
+case $host in
+  *-*-mingw*)
+    CFLAGS_NODIST="$CFLAGS_NODIST -D_WIN32_WINNT=0x0601";;
+esac
+
 # Determine if windows modules should be used.
 AC_SUBST(USE_WIN32_MODULE)
 USE_WIN32_MODULE='#'
-- 
2.32.0