chiark / gitweb /
Fix previous commit for !HAVE_AUDIT
[elogind.git] / src / nspawn / nspawn.c
index b91b0b8a91f4bccc9011028e20a101bb9506fbf7..33153c950777b7591c64c35536cafbf4e4072336 100644 (file)
@@ -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;
 }