x265: fix compilation against gcc15 (#442632)

This commit is contained in:
Emily
2025-09-13 20:48:50 +01:00
committed by GitHub
2 changed files with 27 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
From 43e696a388ddf4ce5f4b9f756e726544b6310092 Mon Sep 17 00:00:00 2001
From: ReenigneArcher <reenignearcher@gmail.com>
Date: Wed, 9 Jul 2025 14:41:33 +0000
Subject: [PATCH] fix(dynamicHDR10): undefined-uint8_t
---
source/dynamicHDR10/json11/json11.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/source/dynamicHDR10/json11/json11.cpp b/source/dynamicHDR10/json11/json11.cpp
index 762577735..c111ebb82 100644
--- a/dynamicHDR10/json11/json11.cpp
+++ b/dynamicHDR10/json11/json11.cpp
@@ -22,6 +22,7 @@
#include "json11.h"
#include <cassert>
#include <cmath>
+#include <cstdint>
#include <cstdlib>
#include <cstdio>
#include <limits>
--
2.49.0
+3
View File
@@ -55,6 +55,9 @@ stdenv.mkDerivation rec {
patches = [
./darwin-__rdtsc.patch
# fix compilation with gcc15
# https://bitbucket.org/multicoreware/x265_git/pull-requests/36
./gcc15-fixes.patch
]
# TODO: remove after update to version 4.2
++ lib.optionals (stdenv.hostPlatform.isAarch32 && stdenv.hostPlatform.isLinux) [