From 976bbdd6b20db64eabba785a92c31d7e49dfb079 Mon Sep 17 00:00:00 2001 From: Evgeny Grin Date: Mon, 10 Jun 2019 13:13:22 +0300 Subject: [PATCH] libmicrohttpd: build for Win7+ --- mingw-w64-libmicrohttpd/PKGBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mingw-w64-libmicrohttpd/PKGBUILD b/mingw-w64-libmicrohttpd/PKGBUILD index fbd5a424d0..06fd4efa98 100644 --- a/mingw-w64-libmicrohttpd/PKGBUILD +++ b/mingw-w64-libmicrohttpd/PKGBUILD @@ -7,7 +7,7 @@ _realname=libmicrohttpd pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=0.9.64 -pkgrel=1 +pkgrel=2 pkgdesc="GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application (mingw-w64)" arch=('any') url="https://www.gnu.org/software/libmicrohttpd" @@ -38,6 +38,7 @@ build() { [[ -d ${srcdir}/build-${MINGW_CHOST} ]] && rm -rf ${srcdir}/build-${MINGW_CHOST} mkdir -p ${srcdir}/build-${MINGW_CHOST} && cd ${srcdir}/build-${MINGW_CHOST} ../${_realname}-${pkgver}/configure \ + CPPFLAGS="${CPPFLAGS} -D_WIN32_WINNT=0x0601" \ --prefix=${MINGW_PREFIX} \ --build=${MINGW_CHOST} \ --host=${MINGW_CHOST} \