include-memory-header-to-get-the-definition-of-std-u.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. From 40d994e4aa2e4d5077c1810e4623549618a19c05 Mon Sep 17 00:00:00 2001
  2. From: Piotr Tworek <ptworek@vewd.com>
  3. Date: Mon, 27 Apr 2020 16:31:46 +0000
  4. Subject: [PATCH] Include "memory" header to get the definition of
  5. std::unique_ptr.
  6. Right now the code im the affected fails to build when using libstdc++
  7. instead of bundled libcxx. Apparently libcxx pulls the necessary header
  8. indirectly.
  9. Change-Id: Ie5e86f228434ab16d622ae7a912d9ce607258931
  10. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2164645
  11. Reviewed-by: Jochen Eisinger <jochen@chromium.org>
  12. Commit-Queue: Jochen Eisinger <jochen@chromium.org>
  13. Cr-Commit-Position: refs/heads/master@{#762881}
  14. ---
  15. .../blink/renderer/core/html/trust_token_attribute_parsing.h | 2 ++
  16. 1 file changed, 2 insertions(+)
  17. diff --git a/third_party/blink/renderer/core/html/trust_token_attribute_parsing.h b/third_party/blink/renderer/core/html/trust_token_attribute_parsing.h
  18. index f5a7ab03892..ef19cfaf680 100644
  19. --- a/third_party/blink/renderer/core/html/trust_token_attribute_parsing.h
  20. +++ b/third_party/blink/renderer/core/html/trust_token_attribute_parsing.h
  21. @@ -5,6 +5,8 @@
  22. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_HTML_TRUST_TOKEN_ATTRIBUTE_PARSING_H_
  23. #define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_TRUST_TOKEN_ATTRIBUTE_PARSING_H_
  24. +#include <memory>
  25. +
  26. #include "base/optional.h"
  27. #include "services/network/public/mojom/trust_tokens.mojom-blink-forward.h"
  28. #include "third_party/blink/renderer/core/core_export.h"