summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-12-17 16:17:12 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-12-17 16:20:48 +0100
commitece7f5bb0afee0994a4fb4380e756ce725fe67a9 (patch)
treeb967b4d2442f52d4cf0b30c8fd4c53caf582a815
parentc6d40932f81edc656bbcc8dbd9d277aba543bc5b (diff)
Do not require libxxhash-dev for including pkgcachegen.h
-rw-r--r--apt-pkg/pkgcachegen.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.h b/apt-pkg/pkgcachegen.h
index 9a88b45e7..62c171be4 100644
--- a/apt-pkg/pkgcachegen.h
+++ b/apt-pkg/pkgcachegen.h
@@ -29,7 +29,9 @@
#endif
#include <apt-pkg/string_view.h>
+#ifdef APT_COMPILING_APT
#include <xxhash.h>
+#endif
class FileFd;
class pkgSourceList;
@@ -48,7 +50,7 @@ class APT_HIDDEN pkgCacheGenerator /*{{{*/
}
// Dirty hack for public users that do not use C++11 yet
-#if __cplusplus >= 201103L
+#if __cplusplus >= 201103L && defined(APT_COMPILING_APT)
struct string_pointer {
const char *data_;
size_t size;