sys-fs/dwarfs: fixed bug that appears with modern compilers

clang-16 or gcc-13

Closes: https://bugs.gentoo.org/906181
Signed-off-by: Denis Reva <denis7774@gmail.com>
This commit is contained in:
Denis Reva
2023-05-16 15:03:14 +05:00
parent 143201b505
commit 9aaa47b79e
3 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/fbthrift/thrift/compiler/generate/json.cc b/fbthrift/thrift/compiler/generate/json.cc
index c4d87a3..015e81f 100644
--- a/fbthrift/thrift/compiler/generate/json.cc
+++ b/fbthrift/thrift/compiler/generate/json.cc
@@ -18,7 +18,7 @@
#include <ostream>
#include <sstream>
-
+#include <cstdint>
namespace apache {
namespace thrift {
namespace compiler {

View File

@@ -0,0 +1,14 @@
diff --git a/folly/folly/system/AtFork.cpp b/folly/folly/system/AtFork.cpp
index e888e52..8c9eee5 100644
--- a/folly/folly/system/AtFork.cpp
+++ b/folly/folly/system/AtFork.cpp
@@ -20,7 +20,8 @@
#include <folly/lang/Exception.h>
#include <folly/portability/PThread.h>
#include <folly/synchronization/SanitizeThread.h>
-
+#include <system_error>
+#include <stdexcept>
namespace folly {
void AtForkList::prepare() noexcept {