-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[folly]: fix build with gcc 13. (#31586)
- Loading branch information
Showing
5 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From e3cba5dd4f59c695d9cbf6bd02249af7103cc300 Mon Sep 17 00:00:00 2001 | ||
From: Sam James <[email protected]> | ||
Date: Sun, 22 Jan 2023 05:06:16 +0000 | ||
Subject: [PATCH] Fix build with GCC 13 (add missing includes) | ||
|
||
GCC 13 (as usual for new compiler releases) shuffles around some | ||
internal includes and so <stdexcept> etc is no longer transitively included. | ||
|
||
Signed-off-by: Sam James <[email protected]> | ||
--- | ||
folly/system/AtFork.cpp | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/folly/system/AtFork.cpp b/folly/system/AtFork.cpp | ||
index e888e52858a..a5570330dc3 100644 | ||
--- a/folly/system/AtFork.cpp | ||
+++ b/folly/system/AtFork.cpp | ||
@@ -14,6 +14,9 @@ | ||
* limitations under the License. | ||
*/ | ||
|
||
+#include <stdexcept> | ||
+#include <system_error> | ||
+ | ||
#include <folly/system/AtFork.h> | ||
|
||
#include <folly/ScopeGuard.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters