From 76cc8a1fcef7285f3caff6dc525dd6edab5becaf Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 21 Jun 2017 11:25:37 +0100 Subject: [PATCH] python-scandir: Add CPPFLAG of -D_WIN32_WINNT=0x0600 As otherwise GetFinalPathNameByHandleW is not available --- mingw-w64-python-scandir/PKGBUILD | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mingw-w64-python-scandir/PKGBUILD b/mingw-w64-python-scandir/PKGBUILD index 3125d5fde4..0c51383352 100644 --- a/mingw-w64-python-scandir/PKGBUILD +++ b/mingw-w64-python-scandir/PKGBUILD @@ -25,11 +25,13 @@ prepare() { build() { cd ${srcdir}/build-python3-${CARCH} MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ - ${MINGW_PREFIX}/bin/python3 setup.py build + CPPFLAGS=$PPCFLAGS" -D_WIN32_WINNT=0x0600" \ + ${MINGW_PREFIX}/bin/python3 setup.py build cd ${srcdir}/build-python2-${CARCH} MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ - ${MINGW_PREFIX}/bin/python2 setup.py build + CPPFLAGS=$PPCFLAGS" -D_WIN32_WINNT=0x0600" \ + ${MINGW_PREFIX}/bin/python2 setup.py build } package_python3-scandir() {