From 2e996f4d4b642c5682c608c9692ad2ffae398ab2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 9 May 2013 19:31:20 -0400 Subject: [PATCH] nspawn: Include netlink headers rather than using #ifdef This is a better fix than e13e1fad8b231e187bd5de3ce668411bdcd3ac1a for failing to compile without audit that 77b6e19458f37cfde127ec6aa9494c0ac45ad890 introduced. --- src/nspawn/nspawn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 33153c950..95d76eb3c 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -39,6 +39,7 @@ #include #include #include +#include #include #include @@ -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; } -- 2.30.2