From ece7f5bb0afee0994a4fb4380e756ce725fe67a9 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 17 Dec 2020 16:17:12 +0100 Subject: Do not require libxxhash-dev for including pkgcachegen.h --- apt-pkg/pkgcachegen.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apt-pkg') 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 +#ifdef APT_COMPILING_APT #include +#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; -- cgit v1.2.3