mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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: commited40333a23(cherry picked from commit548af2929e)
This commit is contained in:
@@ -94,5 +94,6 @@ do_getcon (void)
|
||||
#else /* !HAVE_LIBSELINUX */
|
||||
|
||||
OPTGROUP_SELINUX_NOT_AVAILABLE
|
||||
OPTGROUP_SELINUXRELABEL_NOT_AVAILABLE
|
||||
|
||||
#endif /* !HAVE_LIBSELINUX */
|
||||
|
||||
Reference in New Issue
Block a user