summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-11-17 16:39:15 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2024-11-17 16:41:33 +0100
commitdb57773a96d1108bdad78ff3d1359a88d9689912 (patch)
treef4f0cff946a14418921256f427ff3bdbf73ab3ce /apt-pkg
parent4f85954cb77b295d7853c420e918933293affed4 (diff)
string_view: Include missing headers
Specifically the lack of the `string_view` include is causing compilation failures for rust-rust-apt. Running iwyu also adds `algorithm` for our use of `std::min`, and `iosfwd` for our use of `std::ostream` none of which seem to be causing build failures so far.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/string_view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/contrib/string_view.h b/apt-pkg/contrib/string_view.h
index 6224e2ac4..538e79a92 100644
--- a/apt-pkg/contrib/string_view.h
+++ b/apt-pkg/contrib/string_view.h
@@ -12,8 +12,11 @@
#if !defined(APT_STRINGVIEW_H)
#define APT_STRINGVIEW_H
#include <apt-pkg/macros.h>
+#include <algorithm>
#include <cstring>
+#include <iosfwd>
#include <string>
+#include <string_view>
#if APT_PKG_ABI > 600
namespace APT {