summaryrefslogtreecommitdiff
path: root/apt-private/private-json-hooks.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-private/private-json-hooks.cc')
-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);