daemon/selinux.c: Fix compilation when no libselinux

/usr/bin/ld: /tmp/ccvSGq6E.ltrans7.ltrans.o:(.data.rel.ro+0x1f8): undefined reference to `optgroup_selinuxrelabel_available'

The reason is that we didn't include optgroup_selinuxrelabel_available
on the fallback / no libselinux code path.

Reported-by: David Runge
Thanks: Toolybird
Fixes: https://github.com/libguestfs/libguestfs/issues/290
Fixes: commit ed40333a23
This commit is contained in:
Richard W.M. Jones
2026-01-19 11:52:16 +00:00
committed by rwmjones
parent 29162f5fe5
commit 548af2929e

View File

@@ -94,5 +94,6 @@ do_getcon (void)
#else /* !HAVE_LIBSELINUX */
OPTGROUP_SELINUX_NOT_AVAILABLE
OPTGROUP_SELINUXRELABEL_NOT_AVAILABLE
#endif /* !HAVE_LIBSELINUX */