forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
v8_include.patch
41 lines (35 loc) · 1.33 KB
/
v8_include.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# fix include types for late clang (15.0.7) / gcc (13.2.1)
# for Arch linux / Fedora, like in
# In file included from external/v8/src/torque/torque.cc:5:
# In file included from external/v8/src/torque/source-positions.h:10:
# In file included from external/v8/src/torque/contextual.h:10:
# In file included from external/v8/src/base/macros.h:12:
# external/v8/src/base/logging.h:154:26: error: use of undeclared identifier 'uint16_t'
diff --git a/src/base/logging.h b/src/base/logging.h
--- a/src/base/logging.h
+++ b/src/base/logging.h
@@ -5,6 +5,7 @@
#ifndef V8_BASE_LOGGING_H_
#define V8_BASE_LOGGING_H_
+#include <cstdint>
#include <cstring>
#include <sstream>
#include <string>
diff --git a/src/base/macros.h b/src/base/macros.h
--- a/src/base/macros.h
+++ b/src/base/macros.h
@@ -5,6 +5,7 @@
#ifndef V8_BASE_MACROS_H_
#define V8_BASE_MACROS_H_
+#include <cstdint>
#include <limits>
#include <type_traits>
diff --git a/src/inspector/v8-string-conversions.h b/src/inspector/v8-string-conversions.h
--- a/src/inspector/v8-string-conversions.h
+++ b/src/inspector/v8-string-conversions.h
@@ -5,6 +5,7 @@
#ifndef V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
#define V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
+#include <cstdint>
#include <string>
// Conversion routines between UT8 and UTF16, used by string-16.{h,cc}. You may