summaryrefslogtreecommitdiff
path: root/apt-private/private-json-hooks.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-06-12 15:03:19 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2019-06-12 15:03:19 +0200
commitc11ab3e93624e7ac8050a287aba5b115aff0fea6 (patch)
treef87173bc7986992043a8e07ae05cae9bed8083fd /apt-private/private-json-hooks.cc
parentf9709234fc133bda96418d7f363e63d6f5fb1b09 (diff)
parent82b881caafa0c82b20db3900f8b76cebd8a393a4 (diff)
Merge branch 'pu/cleaner-headers'
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);