From 756aea37fec22a4dd10b5b0b7967bcfc13a58a25 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Fri, 22 Apr 2011 09:30:45 +0200 Subject: [PATCH] Do not compile unused functions when SELinux support is disabled --- build/policies.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.7.4