[COMMIT seastar master] core/units: include what we use

1 view
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
Jan 26, 2023, 7:55:45 AM1/26/23
to seastar-dev@googlegroups.com, Kefu Chai
From: Kefu Chai <kefu...@scylladb.com>
Committer: Avi Kivity <a...@scylladb.com>
Branch: master

core/units: include what we use

a header file is supposed to be self-contained. as `size_t` is defined
by cstddef, let's include it.

Signed-off-by: Kefu Chai <kefu...@scylladb.com>

---
diff --git a/include/seastar/core/units.hh b/include/seastar/core/units.hh
--- a/include/seastar/core/units.hh
+++ b/include/seastar/core/units.hh
@@ -21,6 +21,8 @@

#pragma once

+#include <cstddef>
+
namespace seastar {

static constexpr size_t KB = 1 << 10;
Reply all
Reply to author
Forward
0 new messages