File bitset-missing-uint8_t-memcpy.patch of Package nodejs-electron

From df291ec5472fa14e828633378b8c97a8c7a2e7de Mon Sep 17 00:00:00 2001
From: Jose Dapena Paz <jdapena@igalia.com>
Date: Wed, 20 Mar 2024 12:38:04 +0000
Subject: [PATCH] IWYU: missing includes in ukm::BitSet
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Usage of uint8_t and std::memcpy require includes.

Bug: 41455655
Change-Id: Ib96b3c3595660fc05d37d61ba9ec36add18eba57
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5370063
Commit-Queue: José Dapena Paz <jdapena@igalia.com>
Reviewed-by: Cait Phillips <caitkp@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1275509}
---
 components/ukm/bitset.cc | 2 ++
 components/ukm/bitset.h  | 1 +
 2 files changed, 3 insertions(+)

diff --git a/components/ukm/bitset.cc b/components/ukm/bitset.cc
index 0c4faff95ed29..da83c35aa5c58 100644
--- a/components/ukm/bitset.cc
+++ b/components/ukm/bitset.cc
@@ -4,6 +4,8 @@
 
 #include "components/ukm/bitset.h"
 
+#include <cstring>
+
 #include "base/check_op.h"
 
 namespace ukm {
diff --git a/components/ukm/bitset.h b/components/ukm/bitset.h
index 9b1f88c844ef6..005ce6e329db2 100644
--- a/components/ukm/bitset.h
+++ b/components/ukm/bitset.h
@@ -5,6 +5,7 @@
 #ifndef COMPONENTS_UKM_BITSET_H_
 #define COMPONENTS_UKM_BITSET_H_
 
+#include <cstdint>
 #include <string>
 #include <vector>
 
openSUSE Build Service is sponsored by