From e13e1fad8b231e187bd5de3ce668411bdcd3ac1a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 9 May 2013 18:32:32 -0400 Subject: [PATCH] Fix previous commit for !HAVE_AUDIT --- src/nspawn/nspawn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index b91b0b8a9..33153c950 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -1220,6 +1220,7 @@ finish: } static bool audit_enabled(void) { +#ifdef HAVE_AUDIT int fd; fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT); @@ -1227,7 +1228,7 @@ static bool audit_enabled(void) { close_nointr_nofail(fd); return true; } - +#endif return false; } -- 2.30.2