summaryrefslogtreecommitdiff
blob: 5f71576bc001bdef595268796dc52e4d3fa060a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From https://github.com/bareos/bareos/pull/1687/commits/3907be7ff9700d0328198b47c58885f5ec56546c
https://bugs.gentoo.org/920489

diff --git a/core/src/cats/sql_get.cc b/core/src/cats/sql_get.cc
index b5d921c..150ebfc 100644
--- a/core/src/cats/sql_get.cc
+++ b/core/src/cats/sql_get.cc
@@ -31,6 +31,7 @@
  */
 
 #include "include/bareos.h"
+#include <algorithm>
 
 #if HAVE_SQLITE3 || HAVE_MYSQL || HAVE_POSTGRESQL || HAVE_INGRES || HAVE_DBI
 
diff --git a/core/src/stored/append.cc b/core/src/stored/append.cc
index 05f6784..32234d4 100644
--- a/core/src/stored/append.cc
+++ b/core/src/stored/append.cc
@@ -41,6 +41,8 @@
 #include "lib/berrno.h"
 #include "lib/berrno.h"
 
+#include <algorithm>
+
 namespace storagedaemon {
 
 /* Responses sent to the daemon */
diff --git a/core/src/dird/ua_prune.cc b/core/src/dird/ua_prune.cc
index 9a0770c..15a0a56 100644
--- a/core/src/dird/ua_prune.cc
+++ b/core/src/dird/ua_prune.cc
@@ -40,6 +40,8 @@
 #include "lib/edit.h"
 #include "lib/parse_conf.h"
 
+#include <algorithm>
+
 namespace directordaemon {
 
 /* Forward referenced functions */