summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2022-03-20 14:24:28 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2022-03-21 02:57:24 +0100
commit4dd5e241af25eeac5d1b6b61b73aa73614130d7c (patch)
tree455b5d535cbb5fd38736900adb3ac09f8b953993 /test
parentd1d899f56f365178ad9f2d5073f36dc5af8226bc (diff)
Fix build failure with gcc-12 due to missing include
apt/test/interactive-helper/aptwebserver.cc: In function ‘std::string HTMLEncode(std::string)’: error: variable ‘constexpr const std::array<std::array<const char*, 2>, 6> htmlencode’ has initializer but incomplete type Reported-By: Helmut Grohne on IRC
Diffstat (limited to 'test')
-rw-r--r--test/interactive-helper/aptwebserver.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/interactive-helper/aptwebserver.cc b/test/interactive-helper/aptwebserver.cc
index d4bac24d1..f4f8d95eb 100644
--- a/test/interactive-helper/aptwebserver.cc
+++ b/test/interactive-helper/aptwebserver.cc
@@ -21,6 +21,7 @@
#include <time.h>
#include <unistd.h>
+#include <array>
#include <algorithm>
#include <fstream>
#include <iostream>