0004-src-util-string-h-fix-gcc13.patch 725 B

1234567891011121314151617181920212223
  1. From fa2deae2a86417d7e0d4cd33fb933b1000d20313 Mon Sep 17 00:00:00 2001
  2. From: MacroFake <falke.marco@gmail.com>
  3. Date: Thu, 5 May 2022 08:28:29 +0200
  4. Subject: [PATCH] Wrap boost::replace_all
  5. Upstream: https://github.com/bitcoin/bitcoin/commit/fa2deae2a86417d7e0d4cd33fb933b1000d20313
  6. [Bernd: backported relevant part from upstream commit to version 0.21.2
  7. to fix build error with gcc 13.x]
  8. Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
  9. ---
  10. diff --git a/src/util/string.h b/src/util/string.h
  11. index 2e91347b27a10..df20e34ae9aaa 100644
  12. --- a/src/util/string.h
  13. +++ b/src/util/string.h
  14. @@ -9,6 +9,7 @@
  15. #include <algorithm>
  16. #include <array>
  17. +#include <cstdint>
  18. #include <cstring>
  19. #include <locale>
  20. #include <sstream>