diff options
Diffstat (limited to 'meta/recipes-devtools/apt/apt/0001-aptwebserver.cc-Include-array.patch')
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-aptwebserver.cc-Include-array.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/apt/apt/0001-aptwebserver.cc-Include-array.patch b/meta/recipes-devtools/apt/apt/0001-aptwebserver.cc-Include-array.patch new file mode 100644 index 0000000000..cfee50c7a0 --- /dev/null +++ b/meta/recipes-devtools/apt/apt/0001-aptwebserver.cc-Include-array.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From f999aeb5ceb77b81c36e6a55300a521aaa2da882 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 26 May 2021 22:12:46 -0700 | ||
4 | Subject: [PATCH] aptwebserver.cc: Include <array> | ||
5 | |||
6 | This helps getting std::array definition | ||
7 | |||
8 | Fixes | ||
9 | test/interactive-helper/aptwebserver.cc:36:55: error: constexpr variable cannot have non-literal type 'const std::array<std::array<const char *, 2>, 6>' | ||
10 | constexpr std::array<std::array<char const *,2>,6> htmlencode = {{ | ||
11 | |||
12 | Upstream-Status: Submitted [https://github.com/Debian/apt/pull/133] | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | test/interactive-helper/aptwebserver.cc | 1 + | ||
16 | 1 file changed, 1 insertion(+) | ||
17 | |||
18 | diff --git a/test/interactive-helper/aptwebserver.cc b/test/interactive-helper/aptwebserver.cc | ||
19 | index 58ba54f84..0e030c7e9 100644 | ||
20 | --- a/test/interactive-helper/aptwebserver.cc | ||
21 | +++ b/test/interactive-helper/aptwebserver.cc | ||
22 | @@ -22,6 +22,7 @@ | ||
23 | #include <unistd.h> | ||
24 | |||
25 | #include <algorithm> | ||
26 | +#include <array> | ||
27 | #include <fstream> | ||
28 | #include <iostream> | ||
29 | #include <list> | ||
30 | -- | ||
31 | 2.31.1 | ||
32 | |||