]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix parserpmrichdep conditional
authorMichael Schroeder <mls@suse.de>
Mon, 26 Feb 2018 14:27:24 +0000 (15:27 +0100)
committerMichael Schroeder <mls@suse.de>
Mon, 26 Feb 2018 14:27:24 +0000 (15:27 +0100)
bindings/solv.i

index 4081c4bd7704a2887b9d58f7737ee7116dd6187c..743bcc8dd8ec1697c7375c8157d80b5a011ce679 100644 (file)
@@ -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);