From 6e0328ab88daed53ffbaca9a7212cf57ff70de69 Mon Sep 17 00:00:00 2001 From: Christopher Byrne Date: Sep 19 2023 14:44:59 +0000 Subject: src/oddjobd.c: Fix non-selinux build This fixes a oddjobd.c:2988:61: error: ‘struct ’ has no member named ‘selinux_enabled’ Signed-off-by: Christopher Byrne --- diff --git a/src/oddjobd.c b/src/oddjobd.c index ca78550..44de748 100644 --- a/src/oddjobd.c +++ b/src/oddjobd.c @@ -2985,7 +2985,11 @@ main(int argc, char **argv) /* Open a connection to the message bus. */ check_selinux_applicable(); +#if SELINUX_ACLS ctx = oddjob_dbus_listeners_new(options.bus, globals.selinux_enabled); +#else + ctx = oddjob_dbus_listeners_new(options.bus, 0); +#endif if (ctx == NULL) { fprintf(stderr, "Error connecting to D-Bus!\n"); return 2;