electron24: patch for musl

This commit is contained in:
Đoàn Trần Công Danh 2024-03-30 18:17:08 +07:00
parent cdd63879de
commit d62970fb75

View file

@ -301,3 +301,93 @@
namespace pdfium {
namespace annotation_flags {
--- a/src/third_party/openscreen/src/platform/base/error.h
+++ b/src/third_party/openscreen/src/platform/base/error.h
@@ -6,6 +6,7 @@
#define PLATFORM_BASE_ERROR_H_
#include <cassert>
+#include <cstdint>
#include <ostream>
#include <string>
#include <utility>
--- a/src/third_party/dawn/src/tint/reader/wgsl/token.h
+++ b/src/third_party/dawn/src/tint/reader/wgsl/token.h
@@ -15,6 +15,7 @@
#ifndef SRC_TINT_READER_WGSL_TOKEN_H_
#define SRC_TINT_READER_WGSL_TOKEN_H_
+#include <cstdint>
#include <string>
#include <string_view>
#include <variant>
--- a/src/third_party/webrtc/rtc_base/system/file_wrapper.h
+++ b/src/third_party/webrtc/rtc_base/system/file_wrapper.h
@@ -12,6 +12,7 @@
#define RTC_BASE_SYSTEM_FILE_WRAPPER_H_
#include <stddef.h>
+#include <stdint.h>
#include <stdio.h>
#include <string>
--- a/src/components/dom_distiller/core/url_utils.h
+++ b/src/components/dom_distiller/core/url_utils.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_
#define COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_
+#include <cstdint>
#include <string>
#include "base/strings/string_piece_forward.h"
--- a/src/gpu/config/gpu_driver_bug_workarounds.h
+++ b/src/gpu/config/gpu_driver_bug_workarounds.h
@@ -5,6 +5,7 @@
#ifndef GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_
#define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_
+#include <cstdint>
#include <vector>
#include "build/build_config.h"
--- a/src/media/base/video_transformation.h
+++ b/src/media/base/video_transformation.h
@@ -5,6 +5,7 @@
#ifndef MEDIA_BASE_VIDEO_TRANSFORMATION_H_
#define MEDIA_BASE_VIDEO_TRANSFORMATION_H_
+#include <cstdint>
#include <string>
#include "base/numerics/math_constants.h"
--- a/src/third_party/blink/public/common/page_state/page_state.h
+++ b/src/third_party/blink/public/common/page_state/page_state.h
@@ -5,6 +5,7 @@
#ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_PAGE_STATE_PAGE_STATE_H_
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_PAGE_STATE_PAGE_STATE_H_
+#include <stdint.h>
#include <string>
#include <vector>
--- a/src/components/autofill/core/browser/strike_databases/strike_database_base.h
+++ b/src/components/autofill/core/browser/strike_databases/strike_database_base.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_STRIKE_DATABASES_STRIKE_DATABASE_BASE_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_STRIKE_DATABASES_STRIKE_DATABASE_BASE_H_
+#include <cstdint>
#include <map>
#include <string>
#include <vector>
--- a/src/ui/accessibility/ax_text_attributes.h
+++ b/src/ui/accessibility/ax_text_attributes.h
@@ -5,6 +5,7 @@
#ifndef UI_ACCESSIBILITY_AX_TEXT_ATTRIBUTES_H_
#define UI_ACCESSIBILITY_AX_TEXT_ATTRIBUTES_H_
+#include <cstdint>
#include <string>
#include <vector>