diff options
-rw-r--r-- | src/nspawn/nspawn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 33153c9507..95d76eb3c3 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -39,6 +39,7 @@ #include <sys/signalfd.h> #include <grp.h> #include <linux/fs.h> +#include <linux/netlink.h> #include <sys/un.h> #include <sys/socket.h> @@ -1220,7 +1221,6 @@ finish: } static bool audit_enabled(void) { -#ifdef HAVE_AUDIT int fd; fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT); @@ -1228,7 +1228,6 @@ static bool audit_enabled(void) { close_nointr_nofail(fd); return true; } -#endif return false; } |