]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: accomodate selinux 2.5 header API change
authorEric Blake <eblake@redhat.com>
Wed, 24 Feb 2016 22:02:44 +0000 (15:02 -0700)
committerCole Robinson <crobinso@redhat.com>
Wed, 13 Apr 2016 23:09:58 +0000 (19:09 -0400)
commitf4067eef11809795f6eb291e85873197a7ed8a74
treec4bf3775ac116a48e4ff2232a18f5d658aff9331
parent2cd6df52da56c73ad40e55bc3d639b612566296d
build: accomodate selinux 2.5 header API change

Yet again, selinux has been adding const-correctness; this change
is ABI-compatible, but breaks API, which affects us when we try to
override things in our testsuite:

../../tests/securityselinuxhelper.c:307:24: error: conflicting types for 'selabel_open'
 struct selabel_handle *selabel_open(unsigned int backend,
                        ^~~~~~~~~~~~
In file included from ../../tests/securityselinuxhelper.c:32:0:
/usr/include/selinux/label.h:73:24: note: previous declaration of 'selabel_open' was here

The problem is a new 'const' prior to the second parameter.

Fix it the same way we did in commit 292d3f2d: check for the new
const at configure time.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit 5ea3a690a28ed1d7ef1253a6e63e236541cceba2)
m4/virt-selinux.m4
tests/securityselinuxhelper.c