diff mbox series

[meta-oe,03/10] v4l-utils: Fix build with gcc13

Message ID 20230127055440.2108933-3-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,01/10] poco: Do not use std::atomic<bool> | expand

Commit Message

Khem Raj Jan. 27, 2023, 5:54 a.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...nclude-missing-cstdint-for-uintptr_t.patch | 31 +++++++++++++++++++
 .../v4l2apps/v4l-utils_1.23.0.bb              |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-info-Include-missing-cstdint-for-uintptr_t.patch
diff mbox series

Patch

diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-info-Include-missing-cstdint-for-uintptr_t.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-info-Include-missing-cstdint-for-uintptr_t.patch
new file mode 100644
index 0000000000..032bf00c7d
--- /dev/null
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-info-Include-missing-cstdint-for-uintptr_t.patch
@@ -0,0 +1,31 @@ 
+From 1d9ce7cd799770981043f656373cbd1bf7558b9a Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Thu, 26 Jan 2023 17:00:00 -0800
+Subject: [PATCH] media-info: Include missing <cstdint> for uintptr_t
+
+gcc 13 moved some includes around and as a result <cstdint> is no longer
+transitively included [1]. Explicitly include it.
+
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+
+Upstream-Status: Submitted [https://lore.kernel.org/linux-media/20230127010741.3883339-1-raj.khem@gmail.com/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ utils/common/media-info.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/utils/common/media-info.cpp b/utils/common/media-info.cpp
+index 53e132f5..1a25a4b6 100644
+--- a/utils/common/media-info.cpp
++++ b/utils/common/media-info.cpp
+@@ -3,6 +3,7 @@
+  * Copyright 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
+  */
+ 
++#include <cstdint>
+ #include <cstring>
+ #include <fstream>
+ #include <iostream>
+-- 
+2.39.1
+
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.23.0.bb b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.23.0.bb
index 383be4a543..b42300f096 100644
--- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.23.0.bb
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.23.0.bb
@@ -32,6 +32,7 @@  SRC_URI = "\
     file://0003-original-patch-export-mediactl-headers.patch \
     file://0004-Do-not-use-getsubopt.patch \
     file://0005-configure.ac-Makefile.am-Support-building-without-NL.patch \
+    file://0001-media-info-Include-missing-cstdint-for-uintptr_t.patch \
 "
 
 SRCREV = "fd544473800d02e90bc289434cc44e5aa8fadd0f"