]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common, librbd, msg, test: fix FTBFS on gcc 13
authorTim Serong <tserong@suse.com>
Wed, 8 Mar 2023 02:53:29 +0000 (13:53 +1100)
committerTim Serong <tserong@suse.com>
Fri, 19 May 2023 04:11:09 +0000 (14:11 +1000)
This is based on 0024-gcc-13.patch from https://tracker.ceph.com/issues/58477
but with an extra #include <cstdint> to avoid dropping std:: prefixes on
integer types.

Fixes: https://tracker.ceph.com/issues/58477
Signed-off-by: Tim Serong <tserong@suse.com>
src/common/Cycles.h
src/librbd/api/PoolMetadata.h
src/msg/async/compression_onwire.h
src/test/librados/op_speed.cc
src/test/mon/test_log_rss_usage.cc

index 16e0aa67fc144f2cb769d15d7dbd203f7a2acf98..b546479c2b3519609fd2429e19b0886a38f801f8 100644 (file)
@@ -32,6 +32,8 @@
 #ifndef CEPH_CYCLES_H
 #define CEPH_CYCLES_H
 
+#include <cstdint>
+
 /**
  * This class provides static methods that read the fine-grain CPU
  * cycle counter and translate between cycle-level times and absolute
index c0a8173596e5cbc08c83798393e1b559a8c9a19f..69ab574ac7545accfe6de1de9d0c9c77b5735840 100644 (file)
@@ -7,6 +7,7 @@
 #include "include/buffer_fwd.h"
 #include "include/rados/librados_fwd.hpp"
 
+#include <cstdint>
 #include <map>
 #include <string>
 
index dcd6d26c4ca3097d37b087fdfa6f137630212adc..d3b35a4655c1bcf1851a3b03e363c80cc1521d72 100644 (file)
@@ -4,6 +4,7 @@
 #ifndef CEPH_COMPRESSION_ONWIRE_H
 #define CEPH_COMPRESSION_ONWIRE_H
 
+#include <cstdint>
 #include <optional>
 
 #include "compressor/Compressor.h"
index 90c7bdac571b8a1bfc42017e73fadb5c2bf6643b..849a6566f2d1019fba0abc68038a61c968daf056 100644 (file)
@@ -1,6 +1,8 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*
 // vim: ts=8 sw=2 smarttab
 
+#include <cstdint>
+
 #include "include/rados/librados.hpp"
 
 constexpr int to_create = 10'000'000;
index f6e85f414c8e79927c2e5bb52e015cf3684cacf6..b8ca3012ab7c1ca31ffb74829d615e18bdd7738f 100644 (file)
@@ -1,4 +1,5 @@
 #include <sys/types.h>
+#include <cstdint>
 #include <dirent.h>
 #include <errno.h>
 #include <vector>