From: Jindrich Novy Date: Fri, 22 Apr 2011 07:30:45 +0000 (+0200) Subject: Do not compile unused functions when SELinux support is disabled X-Git-Tag: tznext/4.11.0.1.tizen20130304~1173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=756aea37fec22a4dd10b5b0b7967bcfc13a58a25;p=tools%2Flibrpm-tizen.git Do not compile unused functions when SELinux support is disabled --- diff --git a/build/policies.c b/build/policies.c index 4beedab..8316637 100644 --- a/build/policies.c +++ b/build/policies.c @@ -16,6 +16,7 @@ #include "debug.h" +#if WITH_SELINUX typedef struct ModuleRec_s { char *path; char *data; @@ -288,6 +289,7 @@ static rpmRC processPolicies(rpmSpec spec, Package pkg, int test) return rc; } +#endif rpmRC processBinaryPolicies(rpmSpec spec, int test) {