From a735ddba3cf04d4e3bbd7e2f5b16e0a54a25ec2d Mon Sep 17 00:00:00 2001 From: Alexey Pavlov Date: Thu, 8 Nov 2018 16:27:25 +0300 Subject: [PATCH] libmicrohttpd: Update to 0.9.60 --- .../001-fix-verify-_WIN32_WINNT.patch | 10 ++++++++++ mingw-w64-libmicrohttpd/PKGBUILD | 15 +++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 mingw-w64-libmicrohttpd/001-fix-verify-_WIN32_WINNT.patch diff --git a/mingw-w64-libmicrohttpd/001-fix-verify-_WIN32_WINNT.patch b/mingw-w64-libmicrohttpd/001-fix-verify-_WIN32_WINNT.patch new file mode 100644 index 0000000000..46b149fa16 --- /dev/null +++ b/mingw-w64-libmicrohttpd/001-fix-verify-_WIN32_WINNT.patch @@ -0,0 +1,10 @@ +--- libmicrohttpd-0.9.60/src/include/mhd_options.h.orig 2018-11-08 15:57:35.408438300 +0300 ++++ libmicrohttpd-0.9.60/src/include/mhd_options.h 2018-11-08 15:58:09.001359700 +0300 +@@ -83,6 +83,7 @@ + #endif + + #if defined(_WIN32) && ! defined(__CYGWIN__) ++#include + #ifndef _WIN32_WINNT + #define _WIN32_WINNT 0x0501 + #else /* _WIN32_WINNT */ diff --git a/mingw-w64-libmicrohttpd/PKGBUILD b/mingw-w64-libmicrohttpd/PKGBUILD index 9817bab4be..b823f74ada 100644 --- a/mingw-w64-libmicrohttpd/PKGBUILD +++ b/mingw-w64-libmicrohttpd/PKGBUILD @@ -6,7 +6,7 @@ _realname=libmicrohttpd pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" -pkgver=0.9.59 +pkgver=0.9.60 pkgrel=1 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') @@ -17,11 +17,18 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config") checkdepends=("${MINGW_PACKAGE_PREFIX}-curl") depends=("${MINGW_PACKAGE_PREFIX}-gnutls") -source=("https://ftp.gnu.org/gnu/libmicrohttpd/${_realname}-${pkgver}.tar.gz"{,.sig}) +source=("https://ftp.gnu.org/gnu/libmicrohttpd/${_realname}-${pkgver}.tar.gz"{,.sig} + 001-fix-verify-_WIN32_WINNT.patch) validpgpkeys=('D8423BCB326C7907033929C7939E6BE1E29FC3CC' # Christian Grothoff '289FE99E138CF6D473A3F0CFBF7AC4A5EAC2BAF4') # Karlson2k (Evgeny Grin) -sha256sums=('9b9ccd7d0b11b0e179f1f58dc2caa3e0c62c8609e1e1dc7dcaadf941b67d923c' - 'SKIP') +sha256sums=('cd0e5d3f95a9e55ef7cdf4d0530e997ba00b8411af9149d9287db785d729c471' + 'SKIP' + '3432047c28bc8010f99264a703f90764595c7bb83fe01e4cd25d5953420edf8d') + +prepare() { + cd ${_realname}-${pkgver} + patch -p1 -i ${srcdir}/001-fix-verify-_WIN32_WINNT.patch +} build() { [[ -d ${srcdir}/build-${MINGW_CHOST} ]] && rm -rf ${srcdir}/build-${MINGW_CHOST}