Commit 008cd59e authored by Frederic Crozat's avatar Frederic Crozat Committed by Colin Walters

Fix build when selinux is disabled but libaudit enabled

https://bugs.freedesktop.org/show_bug.cgi?id=26859
parent fbeb1351
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment