From: Michael Schroeder Date: Mon, 26 Feb 2018 14:27:24 +0000 (+0100) Subject: Fix parserpmrichdep conditional X-Git-Tag: 0.6.33~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3963d6be966461fcef0988aa8a25a4d4dd33c810;p=thirdparty%2Flibsolv.git Fix parserpmrichdep conditional --- diff --git a/bindings/solv.i b/bindings/solv.i index 4081c4bd..743bcc8d 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -665,7 +665,7 @@ typedef int bool; #ifdef SUSE #include "repo_autopattern.h" #endif -#ifdef ENABLE_COMPLEX_DEPS +#if defined(ENABLE_COMPLEX_DEPS) && (defined(ENABLE_SUSEREPO) || defined(ENABLE_RPMMD) || defined(ENABLE_RPMDB) || defined(ENABLE_RPMPKG)) #include "pool_parserpmrichdep.h" #endif #include "solv_xfopen.h" @@ -1732,7 +1732,7 @@ typedef struct { Id id = pool_str2id($self, str, create); return new_Dep($self, id); } -#ifdef ENABLE_COMPLEX_DEPS +#if defined(ENABLE_COMPLEX_DEPS) && (defined(ENABLE_SUSEREPO) || defined(ENABLE_RPMMD) || defined(ENABLE_RPMDB) || defined(ENABLE_RPMPKG)) %newobject Dep; Dep *parserpmrichdep(const char *str) { Id id = pool_parserpmrichdep($self, str);