chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d789b9
)
build-sys: fix !HAVE_SELINUX case
author
Colin Walters
<walters@verbum.org>
Tue, 2 Oct 2012 22:15:14 +0000
(18:15 -0400)
committer
Kay Sievers
<kay@vrfy.org>
Wed, 3 Oct 2012 14:00:33 +0000
(16:00 +0200)
src/shared/selinux-util.c
patch
|
blob
|
history
diff --git
a/src/shared/selinux-util.c
b/src/shared/selinux-util.c
index 4310a975391d89468a6f5282eeab7e5cad9243cc..ff3375607fe5b93608e604cb156fec972bd1f896 100644
(file)
--- a/
src/shared/selinux-util.c
+++ b/
src/shared/selinux-util.c
@@
-19,10
+19,12
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <selinux/selinux.h>
-
#include "selinux-util.h"
+#ifdef HAVE_SELINUX
+
+#include <selinux/selinux.h>
+
static int use_selinux_cached = -1;
bool use_selinux(void) {
@@
-36,3
+38,5
@@
bool use_selinux(void) {
void retest_selinux(void) {
use_selinux_cached = -1;
}
+
+#endif