From 3963d6be966461fcef0988aa8a25a4d4dd33c810 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Mon, 26 Feb 2018 15:27:24 +0100 Subject: [PATCH] Fix parserpmrichdep conditional --- bindings/solv.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.2