summaryrefslogtreecommitdiff
path: root/test/interactive-helper
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2022-04-22 17:05:36 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2022-05-07 10:45:44 +0200
commit320245536a7ad21606286d9dcf54acf3bdf096c6 (patch)
tree839e81d85af6e50e8e8217717e160f41f0946ba1 /test/interactive-helper
parente5aa5c04ecbd3cdab611794cebf9eb3aa8cbddd4 (diff)
Include our config.h in all C++ files to avoid ODR violations
Some of our headers use APT_COMPILING_APT trickery to avoid exposing too broadly details we don't want external clients to know and make use of. The flip-side is that this can lead to different compilation units seeing different definitions if they aren't all using the same config.
Diffstat (limited to 'test/interactive-helper')
-rw-r--r--test/interactive-helper/createdeb-cve-2020-27350.cc2
-rw-r--r--test/interactive-helper/test_fileutl.cc2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/interactive-helper/createdeb-cve-2020-27350.cc b/test/interactive-helper/createdeb-cve-2020-27350.cc
index 7fc9b0e55..57c53ae91 100644
--- a/test/interactive-helper/createdeb-cve-2020-27350.cc
+++ b/test/interactive-helper/createdeb-cve-2020-27350.cc
@@ -1,3 +1,5 @@
+#include <config.h>
+
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
diff --git a/test/interactive-helper/test_fileutl.cc b/test/interactive-helper/test_fileutl.cc
index 6c29b748f..5569af1bf 100644
--- a/test/interactive-helper/test_fileutl.cc
+++ b/test/interactive-helper/test_fileutl.cc
@@ -1,3 +1,5 @@
+#include <config.h>
+
#include <apt-pkg/error.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/strutl.h>