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
(cherry picked from commit 548af2929e)
This commit is contained in:
Richard W.M. Jones
2026-01-19 11:52:16 +00:00
parent 499e4daf72
commit afb648e7cd

View File

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