Do not compile unused functions when SELinux support is disabled
authorJindrich Novy <jnovy@redhat.com>
Fri, 22 Apr 2011 07:30:45 +0000 (09:30 +0200)
committerJindrich Novy <jnovy@redhat.com>
Fri, 22 Apr 2011 07:30:45 +0000 (09:30 +0200)
build/policies.c

index 4beedab..8316637 100644 (file)
@@ -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)
 {