diff options
author | Colin Walters <walters@verbum.org> | 2013-05-09 18:32:32 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-05-09 18:37:26 -0400 |
commit | e13e1fad8b231e187bd5de3ce668411bdcd3ac1a (patch) | |
tree | e447c72aee0c67bb3925706e7fca45c749196fe2 /src | |
parent | c15602af5efd0cf8d30c6ad8161e0442acb5dce2 (diff) |
Fix previous commit for !HAVE_AUDIT
Diffstat (limited to 'src')
-rw-r--r-- | src/nspawn/nspawn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index b91b0b8a91..33153c9507 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; } |