https://src.fedoraproject.org/rpms/espresso/blob/f34/f/espresso-gcc11.patch
--- a/src/core/communication.hpp
+++ b/src/core/communication.hpp
@@ -49,6 +49,8 @@
  *  to \ref CALLBACK_LIST.
  */
 
+#include <cstddef>
+
 #include "MpiCallbacks.hpp"
 
 /* Includes needed by callbacks. */
diff --git a/src/script_interface/ParallelScriptInterface.hpp b/src/script_interface/ParallelScriptInterface.hpp
index c33e67d..02ad815 100644
--- a/src/script_interface/ParallelScriptInterface.hpp
+++ b/src/script_interface/ParallelScriptInterface.hpp
@@ -23,6 +23,7 @@
 #define SCRIPT_INTERFACE_PARALLEL_SCRIPT_INTERFACE_HPP
 
 #include <utility>
+#include <limits>
 
 #include "MpiCallbacks.hpp"
 #include "ScriptInterface.hpp"
diff --git a/src/utils/include/utils/NumeratedContainer.hpp b/src/utils/include/utils/NumeratedContainer.hpp
index 1d99098..1191a79 100644
--- a/src/utils/include/utils/NumeratedContainer.hpp
+++ b/src/utils/include/utils/NumeratedContainer.hpp
@@ -24,6 +24,7 @@
  *  Keep an enumerated list of T objects, managed by the class.
  */
 
+#include <cstddef>
 #include <cassert>
 #include <set>
 #include <unordered_map>

