chiark / gitweb /
Fix previous commit for !HAVE_AUDIT
authorColin Walters <walters@verbum.org>
Thu, 9 May 2013 22:32:32 +0000 (18:32 -0400)
committerColin Walters <walters@verbum.org>
Thu, 9 May 2013 22:37:26 +0000 (18:37 -0400)
src/nspawn/nspawn.c

index b91b0b8a91f4bccc9011028e20a101bb9506fbf7..33153c950777b7591c64c35536cafbf4e4072336 100644 (file)
@@ -1220,6 +1220,7 @@ finish:
 }
 
 static bool audit_enabled(void) {
 }
 
 static bool audit_enabled(void) {
+#ifdef HAVE_AUDIT
         int fd;
 
         fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_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;
         }
                 close_nointr_nofail(fd);
                 return true;
         }
-
+#endif
         return false;
 }
 
         return false;
 }