Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame^] | 1 | From 6168d43ddd353b92ad8bcd5c49dc68f18caa8a00 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 12 Apr 2022 17:07:49 -0700 |
| 4 | Subject: [PATCH 1/2] include missing <array> header |
| 5 | |
| 6 | Fixes |
| 7 | src/osaf/consensus/key_value.cc:25:30: error: aggregate 'std::array<char, 128> buffer' has incomplete type and cannot be defined |
| 8 | 25 | std::array<char, buf_size> buffer; |
| 9 | | ^~~~~~ |
| 10 | |
| 11 | Upstream-Status: Pending |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- |
| 14 | src/osaf/consensus/key_value.cc | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/src/osaf/consensus/key_value.cc b/src/osaf/consensus/key_value.cc |
| 18 | index 692dd3f..6e16cbf 100644 |
| 19 | --- a/src/osaf/consensus/key_value.cc |
| 20 | +++ b/src/osaf/consensus/key_value.cc |
| 21 | @@ -18,7 +18,7 @@ |
| 22 | #include "base/getenv.h" |
| 23 | #include "base/logtrace.h" |
| 24 | #include "osaf/consensus/consensus.h" |
| 25 | - |
| 26 | +#include <array> |
| 27 | int KeyValue::Execute(const std::string& command, std::string& output) { |
| 28 | TRACE_ENTER(); |
| 29 | constexpr size_t buf_size = 128; |
| 30 | -- |
| 31 | 2.35.1 |
| 32 | |