--- /dev/null
+--- mongodb-src-r2.2.4/src/mongo/shell/linenoise_utf8.h~ 2013-04-01 04:41:49.000000000 +0200
++++ mongodb-src-r2.2.4/src/mongo/shell/linenoise_utf8.h 2015-02-18 19:25:42.158352512 +0100
+@@ -17,6 +17,7 @@
+
+ #include <boost/smart_ptr/scoped_array.hpp>
+ #include <string.h>
++#include <algorithm>
+
+ namespace linenoise_utf8 {
+
Patch2: boost-1.50.patch
Patch3: %{name}-install.patch
Patch4: %{name}-shared.patch
+Patch5: gcc4.patch
URL: http://www.mongodb.org/
BuildRequires: boost-devel >= 1.50
BuildRequires: libpcap-devel
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
# Fix permissions
find -type f -executable | xargs chmod a-x