From 29aa3401173c7ce59ecf8e9715a2f69f831cf2cd Mon Sep 17 00:00:00 2001 From: Kyle Kloberdanz Date: Thu, 4 May 2023 13:09:34 -0500 Subject: [PATCH] Fix compilation for GCC 13 (#961) CXX-2686 --- src/mongocxx/events/heartbeat_failed_event.hpp | 2 ++ src/mongocxx/events/heartbeat_started_event.hpp | 2 ++ src/mongocxx/events/server_closed_event.hpp | 2 ++ src/mongocxx/events/server_opening_event.hpp | 2 ++ src/mongocxx/exception/error_code.hpp | 1 + src/mongocxx/exception/server_error_code.hpp | 1 + 6 files changed, 10 insertions(+) diff --git a/src/mongocxx/events/heartbeat_failed_event.hpp b/src/mongocxx/events/heartbeat_failed_event.hpp index 08cbe38d8d..8312fd0b02 100644 --- a/src/mongocxx/events/heartbeat_failed_event.hpp +++ b/src/mongocxx/events/heartbeat_failed_event.hpp @@ -14,6 +14,8 @@ #pragma once +#include + #include #include diff --git a/src/mongocxx/events/heartbeat_started_event.hpp b/src/mongocxx/events/heartbeat_started_event.hpp index e18c109530..7274c362e6 100644 --- a/src/mongocxx/events/heartbeat_started_event.hpp +++ b/src/mongocxx/events/heartbeat_started_event.hpp @@ -14,6 +14,8 @@ #pragma once +#include + #include #include diff --git a/src/mongocxx/events/server_closed_event.hpp b/src/mongocxx/events/server_closed_event.hpp index a0460835e7..d254ce6494 100644 --- a/src/mongocxx/events/server_closed_event.hpp +++ b/src/mongocxx/events/server_closed_event.hpp @@ -14,6 +14,8 @@ #pragma once +#include + #include #include diff --git a/src/mongocxx/events/server_opening_event.hpp b/src/mongocxx/events/server_opening_event.hpp index aa73fceab7..252a556423 100644 --- a/src/mongocxx/events/server_opening_event.hpp +++ b/src/mongocxx/events/server_opening_event.hpp @@ -14,6 +14,8 @@ #pragma once +#include + #include #include diff --git a/src/mongocxx/exception/error_code.hpp b/src/mongocxx/exception/error_code.hpp index 24082c4a6c..8a6c11194b 100644 --- a/src/mongocxx/exception/error_code.hpp +++ b/src/mongocxx/exception/error_code.hpp @@ -14,6 +14,7 @@ #pragma once +#include #include #include diff --git a/src/mongocxx/exception/server_error_code.hpp b/src/mongocxx/exception/server_error_code.hpp index 5a0082ba99..cee7545674 100644 --- a/src/mongocxx/exception/server_error_code.hpp +++ b/src/mongocxx/exception/server_error_code.hpp @@ -14,6 +14,7 @@ #pragma once +#include #include #include