void-packages/srcpkgs/electron7/files/patches/chromium-79-gcc-includes.patch

103 lines
3.5 KiB
Diff

From cf2022b11cd3e28f1f3777b060fd509f665ff8e1 Mon Sep 17 00:00:00 2001
From: Elvis Pranskevichus <elvis@magic.io>
Date: Mon, 6 Jul 2020 10:21:27 -0700
Subject: [PATCH] GCC 10 Fixes
---
base/trace_event/trace_event_memory_overhead.h | 1 +
third_party/angle/include/platform/Platform.h | 1 +
third_party/perfetto/include/perfetto/base/task_runner.h | 2 ++
third_party/webrtc/call/rtx_receive_stream.h | 1 +
4 files changed, 5 insertions(+)
diff --git a/base/trace_event/trace_event_memory_overhead.h b/base/trace_event/trace_event_memory_overhead.h
index 69468d4..e10a3ec 100644
--- a/base/trace_event/trace_event_memory_overhead.h
+++ b/base/trace_event/trace_event_memory_overhead.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <string>
#include <unordered_map>
#include "base/base_export.h"
diff --git a/third_party/angle/include/platform/Platform.h b/third_party/angle/include/platform/Platform.h
index cea6070..0fbd64f 100644
--- a/third_party/angle/include/platform/Platform.h
+++ b/third_party/angle/include/platform/Platform.h
@@ -9,6 +9,7 @@
#ifndef ANGLE_PLATFORM_H
#define ANGLE_PLATFORM_H
+#include <stddef.h>
#include <stdint.h>
#include <array>
diff --git a/third_party/perfetto/include/perfetto/base/task_runner.h b/third_party/perfetto/include/perfetto/base/task_runner.h
index cf60401..040aab2 100644
--- a/third_party/perfetto/include/perfetto/base/task_runner.h
+++ b/third_party/perfetto/include/perfetto/base/task_runner.h
@@ -17,6 +17,8 @@
#ifndef INCLUDE_PERFETTO_BASE_TASK_RUNNER_H_
#define INCLUDE_PERFETTO_BASE_TASK_RUNNER_H_
+#include <stdint.h>
+
#include <functional>
#include "perfetto/base/export.h"
diff --git a/third_party/webrtc/call/rtx_receive_stream.h b/third_party/webrtc/call/rtx_receive_stream.h
index 8ffa440..fb2f9f4 100644
--- a/third_party/webrtc/call/rtx_receive_stream.h
+++ b/third_party/webrtc/call/rtx_receive_stream.h
@@ -11,6 +11,8 @@
#ifndef CALL_RTX_RECEIVE_STREAM_H_
#define CALL_RTX_RECEIVE_STREAM_H_
+#include <stdint.h>
+
#include <map>
#include "call/rtp_packet_sink_interface.h"
diff --git a/third_party/webrtc/modules/audio_processing/aec3/clockdrift_detector.h b/third_party/webrtc/modules/audio_processing/aec3/clockdrift_detector.h
index 22528c9..2ba90bb 100644
--- a/third_party/webrtc/modules/audio_processing/aec3/clockdrift_detector.h
+++ b/third_party/webrtc/modules/audio_processing/aec3/clockdrift_detector.h
@@ -11,6 +11,8 @@
#ifndef MODULES_AUDIO_PROCESSING_AEC3_CLOCKDRIFT_DETECTOR_H_
#define MODULES_AUDIO_PROCESSING_AEC3_CLOCKDRIFT_DETECTOR_H_
+#include <stddef.h>
+
#include <array>
namespace webrtc {
diff --git a/media/cdm/supported_cdm_versions.h b/media/cdm/supported_cdm_versions.h
index 3f220da..c54e3bb 100644
--- a/media/cdm/supported_cdm_versions.h
+++ b/media/cdm/supported_cdm_versions.h
@@ -6,6 +6,7 @@
#define MEDIA_CDM_SUPPORTED_CDM_VERSIONS_H_
#include <array>
+#include <cstddef>
#include "media/base/media_export.h"
#include "media/cdm/api/content_decryption_module.h"
diff --git a/third_party/webrtc/modules/video_coding/decoding_state.h b/third_party/webrtc/modules/video_coding/decoding_state.h
index b87fb2d..ec97294 100644
--- a/third_party/webrtc/modules/video_coding/decoding_state.h
+++ b/third_party/webrtc/modules/video_coding/decoding_state.h
@@ -11,6 +11,7 @@
#ifndef MODULES_VIDEO_CODING_DECODING_STATE_H_
#define MODULES_VIDEO_CODING_DECODING_STATE_H_
+#include <cstdint>
#include <map>
#include <set>
#include <vector>
--
2.26.2