Index: src/Menu/ListGamesState.cpp
--- src/Menu/ListGamesState.cpp.orig
+++ src/Menu/ListGamesState.cpp
@@ -17,6 +17,7 @@
  * along with OpenXcom.  If not, see <http://www.gnu.org/licenses/>.
  */
 #include "ListGamesState.h"
+#include <algorithm>
 #include <utility>
 #include "../Engine/Logger.h"
 #include "../Savegame/SavedGame.h"
