From: Colin Walters Date: Thu, 9 May 2013 23:31:20 +0000 (-0400) Subject: nspawn: Include netlink headers rather than using #ifdef X-Git-Tag: v205~268 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2e996f4d4b642c5682c608c9692ad2ffae398ab2;p=elogind.git nspawn: Include netlink headers rather than using #ifdef This is a better fix than e13e1fad8b231e187bd5de3ce668411bdcd3ac1a for failing to compile without audit that 77b6e19458f37cfde127ec6aa9494c0ac45ad890 introduced. --- 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; }