summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-06-12 13:47:46 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2019-06-12 15:02:55 +0200
commit82b881caafa0c82b20db3900f8b76cebd8a393a4 (patch)
treef87173bc7986992043a8e07ae05cae9bed8083fd /apt-private
parentdaa1352ed3d2bb4bc6aa0f0e7f22be3f0908942d (diff)
downloadapt-82b881caafa0c82b20db3900f8b76cebd8a393a4.tar.gz
Adjust code for missing includes/using std::string
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-json-hooks.cc4
1 files changed, 3 insertions, 1 deletions
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 <apt-pkg/debsystem.h>
+#include <apt-pkg/fileutl.h>
#include <apt-pkg/macros.h>
+#include <apt-pkg/strutl.h>
#include <apt-private/private-json-hooks.h>
#include <ostream>
@@ -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);