diff -Nru orig/EBImage/src/floodFill.cpp patched/EBImage/src/floodFill.cpp
--- orig/EBImage/src/floodFill.cpp	2023-10-20 20:13:18.000000000 +0200
+++ patched/EBImage/src/floodFill.cpp	2024-03-14 10:36:45.818655400 +0100
@@ -1,3 +1,4 @@
+#include <stack>
 #include "floodFill.h"
 #include "tools.h"
 
@@ -9,7 +10,6 @@
 ------------------------------------------------------------------------- */
 
 #include <R_ext/Error.h>
-#include <stack>
 
 /* -------------------------------------------------------------------------- */
 struct XYPoint {
diff -Nru orig/EBImage/src/watershed.cpp patched/EBImage/src/watershed.cpp
--- orig/EBImage/src/watershed.cpp	2023-10-20 20:13:18.000000000 +0200
+++ patched/EBImage/src/watershed.cpp	2024-03-14 10:37:55.605830600 +0100
@@ -1,3 +1,4 @@
+#include <list>
 #include "watershed.h"
 
 /* -------------------------------------------------------------------------
@@ -10,7 +11,6 @@
 #include <R_ext/Error.h>
 
 /* list of STL, C++ */
-#include <list>
 
 #define BG 0.0
 
