--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -71,6 +71,7 @@
 #include "DateInfo.h"
 #include "Link.h"
 #include <string.h>
+#include <algorithm>
 
 #if MULTITHREADED
 #  define annotLocker()   MutexLocker locker(&mutex)
