From 82b881caafa0c82b20db3900f8b76cebd8a393a4 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 12 Jun 2019 13:47:46 +0200 Subject: Adjust code for missing includes/using std::string --- apt-private/private-json-hooks.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apt-private') diff --git a/apt-private/private-json-hooks.cc b/apt-private/private-json-hooks.cc index 3e0d8c93b..480c4f732 100644 --- a/apt-private/private-json-hooks.cc +++ b/apt-private/private-json-hooks.cc @@ -7,7 +7,9 @@ */ #include +#include #include +#include #include #include @@ -356,7 +358,7 @@ bool RunJsonHook(std::string const &option, std::string const &method, const cha SetCloseExec(STDIN_FILENO, false); SetCloseExec(STDERR_FILENO, false); - string hookfd; + std::string hookfd; strprintf(hookfd, "%d", InfoFD); setenv("APT_HOOK_SOCKET", hookfd.c_str(), 1); -- cgit v1.2.3