mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +00:00
nspawn: Include netlink headers rather than using #ifdef
This is a better fix thane13e1fad8bfor failing to compile without audit that77b6e19458introduced.
This commit is contained in:
+1
-2
@@ -39,6 +39,7 @@
|
||||
#include <sys/signalfd.h>
|
||||
#include <grp.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <sys/un.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user