aboutsummaryrefslogtreecommitdiffstats
path: root/community/ceph/44-missing-include2.patch
blob: 6e19c58b35796a27fb2e219e6542734a008d2df4 (plain) (blame)
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
commit ff79cae5a1243111c8a039426081638d40a258fa
Author: Kefu Chai <kchai@redhat.com>
Date:   Mon Apr 12 17:28:56 2021 +0800

    common/Formatter: include used header
    
    otherwise it fails to build with gcc-toolset-10, like:
    
    ../src/common/Formatter.cc: In member function ‘virtual void ceph::XMLFormatter::close_section()’:
    ../src/common/Formatter.cc:449:8: error: ‘transform’ is not a member of ‘std’
      449 |   std::transform(section.begin(), section.end(), section.begin(),
          |        ^~~~~~~~~
    
    Signed-off-by: Kefu Chai <kchai@redhat.com>

diff --git a/src/common/Formatter.cc b/src/common/Formatter.cc
index b599e48b34..362deffb5a 100644
--- a/src/common/Formatter.cc
+++ b/src/common/Formatter.cc
@@ -19,6 +19,7 @@
 #include "include/buffer.h"
 
 #include <fmt/format.h>
+#include <algorithm>
 #include <set>
 #include <limits>