[vlc-commits] [Git][videolan/vlc][master] contrib: qt: Backport a patch to add a missing stdlib.h include

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Nov 7 01:20:55 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
b2879603 by Martin Storsjö at 2026-11-07T00:41:13+00:00
contrib: qt: Backport a patch to add a missing stdlib.h include

This is required when building for armv7, after a recent mingw-w64
include change (in mingw-w64 39f795df2d5f4ae7a3bcc11d2d64655d20576328)
that removed a transitive include of stdlib.h from assert.h

When building for either x86 or aarch64, stdlib.h ends up transitively
included through other headers though.

- - - - -


2 changed files:

- + contrib/src/qt/0001-qsimd.cpp-add-missing-stdlib.h-for-getenv.patch
- contrib/src/qt/rules.mak


Changes:

=====================================
contrib/src/qt/0001-qsimd.cpp-add-missing-stdlib.h-for-getenv.patch
=====================================
@@ -0,0 +1,28 @@
+From e72d6e46282e476290e657a434ceeeaea40625f7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?=
+ <jeanmichael.celerier at gmail.com>
+Date: Mon, 27 Oct 2025 01:28:27 -0400
+Subject: [PATCH] qsimd.cpp: add missing stdlib.h for getenv
+
+Pick-to: 6.11 6.10 6.8
+Change-Id: I6cc8da4261e67d72f32339987fbefed02d8e6384
+Reviewed-by: Thiago Macieira <thiago.macieira at intel.com>
+---
+ src/corelib/global/qsimd.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/corelib/global/qsimd.cpp b/src/corelib/global/qsimd.cpp
+index 7858a80125f..b9c7bf58e5c 100644
+--- a/src/corelib/global/qsimd.cpp
++++ b/src/corelib/global/qsimd.cpp
+@@ -11,6 +11,7 @@
+ #include "qalgorithms.h"
+ 
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ 
+ #if defined(QT_NO_DEBUG) && !defined(NDEBUG)
+-- 
+2.53.0
+


=====================================
contrib/src/qt/rules.mak
=====================================
@@ -58,6 +58,7 @@ qt: qtbase-everywhere-src-$(QTBASE_VERSION_FULL).tar.xz .sum-qt
 	$(APPLY) $(SRC)/qt/0001-macos-guard-text-html.patch
 	$(APPLY) $(SRC)/qt/0001-QEventDispatcherWin32-treat-posted-events-fairly.patch
 	$(APPLY) $(SRC)/qt/0001-rhi-d3d11-Use-DXGI_SWAP_EFFECT_FLIP_DISCARD-only-on-.patch
+	$(APPLY) $(SRC)/qt/0001-qsimd.cpp-add-missing-stdlib.h-for-getenv.patch
 	$(MOVE)
 
 ifdef HAVE_WIN32



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b2879603e73a50218066dd9fd55c38d18ad84beb

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b2879603e73a50218066dd9fd55c38d18ad84beb
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list