diff options
author | Frederic Crozat <fcrozat@mandriva.com> | 2010-03-03 14:05:23 +0100 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-03-03 08:19:35 -0500 |
commit | 008cd59ef713a1efc3c9588cf1079c6a80ddf0c7 (patch) | |
tree | 948af4772d54cc36de0a205b7da60d2ca49e5089 | |
parent | fbeb13517ef667b8ed4136bcb9e52ff9924419c1 (diff) | |
download | dbus-008cd59ef713a1efc3c9588cf1079c6a80ddf0c7.tar.gz |
Fix build when selinux is disabled but libaudit enabled
https://bugs.freedesktop.org/show_bug.cgi?id=26859
-rw-r--r-- | bus/selinux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bus/selinux.c b/bus/selinux.c index e61efc5d..5a9af5ac 100644 --- a/bus/selinux.c +++ b/bus/selinux.c @@ -29,12 +29,12 @@ #include "utils.h" #include "config-parser.h" -#ifdef HAVE_SELINUX -#include <sys/types.h> -#include <unistd.h> #ifdef HAVE_ERRNO_H #include <errno.h> #endif +#ifdef HAVE_SELINUX +#include <sys/types.h> +#include <unistd.h> #include <limits.h> #include <pthread.h> #include <syslog.h> @@ -46,11 +46,11 @@ #include <stdarg.h> #include <stdio.h> #include <grp.h> +#endif /* HAVE_SELINUX */ #ifdef HAVE_LIBAUDIT #include <cap-ng.h> #include <libaudit.h> #endif /* HAVE_LIBAUDIT */ -#endif /* HAVE_SELINUX */ #define BUS_SID_FROM_SELINUX(sid) ((BusSELinuxID*) (sid)) #define SELINUX_SID_FROM_BUS(sid) ((security_id_t) (sid)) |