[vlc-devel] [PATCH v2 3/3] package/win32: build.sh: disable getpid in Winstore builds

Steve Lhomme robux4 at ycbcr.xyz
Thu Apr 30 17:23:48 CEST 2020


It's part of the ucrt in mingw64 but it's not allowed.
We have simple compat replacement.
---
 extras/package/win32/build.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh
index 789874a004d..cc57954c6e8 100755
--- a/extras/package/win32/build.sh
+++ b/extras/package/win32/build.sh
@@ -220,6 +220,9 @@ if [ ! -z "$BUILD_UCRT" ]; then
 
         # we use the regular mingw32 triplet so force the WINSTORE manually
         echo "HAVE_WINSTORE := 1" >> config.mak
+
+        # link works with ucrt but it's not allowed in UWP
+        export ac_cv_func_getpid=no
     else
         CONTRIB_PREFIX="${CONTRIB_PREFIX}ucrt"
     fi
-- 
2.17.1



More information about the vlc-devel mailing list