0011-Include-cstdint-for-uintptr_t-uint8_t-etc.patch 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. From 80ddc04dd2398611afd8eafd89f5a6cd81b82363 Mon Sep 17 00:00:00 2001
  2. From: Arnout Vandecappelle <arnout@rnout.be>
  3. Date: Sun, 18 May 2025 09:59:24 +0200
  4. Subject: [PATCH] Include <cstdint> for uintptr_t, uint8_t, etc.
  5. GCC 15 adheres more strictly to the standard about which type is defined
  6. in which header. As such, uintptr_t, uint8_t, etc. are no longer
  7. available unless cstdint is included.
  8. Add #include <cstdint> in the files that gave errors with GCC 15
  9. Most (all?) of these fixes are already upstream, but spread out over
  10. various commits that don't necessarily apply to our version. Fixing it
  11. ourselves is simpler.
  12. Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
  13. Upstream: N/A, already fixed and we're very far behind
  14. ---
  15. chromium/base/task/thread_pool.h | 1 +
  16. chromium/net/tools/huffman_trie/trie_entry.h | 1 +
  17. .../transport_security_state_entry.h | 1 +
  18. .../perfetto/include/perfetto/ext/tracing/core/slice.h | 1 +
  19. .../perfetto/include/perfetto/tracing/tracing_backend.h | 1 +
  20. .../perfetto/src/trace_processor/importers/gzip/gzip_utils.h | 1 +
  21. 6 files changed, 6 insertions(+)
  22. diff --git a/chromium/base/task/thread_pool.h b/chromium/base/task/thread_pool.h
  23. index 085c249ba58e6..afc674ca7f6fb 100644
  24. --- a/chromium/base/task/thread_pool.h
  25. +++ b/chromium/base/task/thread_pool.h
  26. @@ -5,6 +5,7 @@
  27. #ifndef BASE_TASK_THREAD_POOL_H_
  28. #define BASE_TASK_THREAD_POOL_H_
  29. +#include <cstdint>
  30. #include <memory>
  31. #include <utility>
  32. diff --git a/chromium/net/tools/huffman_trie/trie_entry.h b/chromium/net/tools/huffman_trie/trie_entry.h
  33. index fe70260f981f2..eac6a7fc2499d 100644
  34. --- a/chromium/net/tools/huffman_trie/trie_entry.h
  35. +++ b/chromium/net/tools/huffman_trie/trie_entry.h
  36. @@ -5,6 +5,7 @@
  37. #ifndef NET_TOOLS_HUFFMAN_TRIE_TRIE_ENTRY_H_
  38. #define NET_TOOLS_HUFFMAN_TRIE_TRIE_ENTRY_H_
  39. +#include <cstdint>
  40. #include <memory>
  41. #include <string>
  42. #include <vector>
  43. diff --git a/chromium/net/tools/transport_security_state_generator/transport_security_state_entry.h b/chromium/net/tools/transport_security_state_generator/transport_security_state_entry.h
  44. index 59059d88f6df2..fe15bb7429f6d 100644
  45. --- a/chromium/net/tools/transport_security_state_generator/transport_security_state_entry.h
  46. +++ b/chromium/net/tools/transport_security_state_generator/transport_security_state_entry.h
  47. @@ -5,6 +5,7 @@
  48. #ifndef NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_TRANSPORT_SECURITY_STATE_ENTRY_H_
  49. #define NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_TRANSPORT_SECURITY_STATE_ENTRY_H_
  50. +#include <cstdint>
  51. #include <map>
  52. #include <memory>
  53. #include <string>
  54. diff --git a/chromium/third_party/perfetto/include/perfetto/ext/tracing/core/slice.h b/chromium/third_party/perfetto/include/perfetto/ext/tracing/core/slice.h
  55. index 4ce66fdeadc3a..3f3932b228737 100644
  56. --- a/chromium/third_party/perfetto/include/perfetto/ext/tracing/core/slice.h
  57. +++ b/chromium/third_party/perfetto/include/perfetto/ext/tracing/core/slice.h
  58. @@ -20,6 +20,7 @@
  59. #include <stddef.h>
  60. #include <string.h>
  61. +#include <cstdint>
  62. #include <memory>
  63. #include <string>
  64. #include <vector>
  65. diff --git a/chromium/third_party/perfetto/include/perfetto/tracing/tracing_backend.h b/chromium/third_party/perfetto/include/perfetto/tracing/tracing_backend.h
  66. index 67b0d2eb51e0d..3c2462de588dd 100644
  67. --- a/chromium/third_party/perfetto/include/perfetto/tracing/tracing_backend.h
  68. +++ b/chromium/third_party/perfetto/include/perfetto/tracing/tracing_backend.h
  69. @@ -17,6 +17,7 @@
  70. #ifndef INCLUDE_PERFETTO_TRACING_TRACING_BACKEND_H_
  71. #define INCLUDE_PERFETTO_TRACING_TRACING_BACKEND_H_
  72. +#include <cstdint>
  73. #include <memory>
  74. #include <string>
  75. diff --git a/chromium/third_party/perfetto/src/trace_processor/importers/gzip/gzip_utils.h b/chromium/third_party/perfetto/src/trace_processor/importers/gzip/gzip_utils.h
  76. index 624363ff66f90..68783e879c8e0 100644
  77. --- a/chromium/third_party/perfetto/src/trace_processor/importers/gzip/gzip_utils.h
  78. +++ b/chromium/third_party/perfetto/src/trace_processor/importers/gzip/gzip_utils.h
  79. @@ -18,6 +18,7 @@
  80. #define SRC_TRACE_PROCESSOR_IMPORTERS_GZIP_GZIP_UTILS_H_
  81. #include <memory>
  82. +#include <cstdint>
  83. struct z_stream_s;
  84. --
  85. 2.49.0