]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't import loop.h unless HAVE_DECL_LO_FLAGS_AUTOCLEAR is defined
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 7 Mar 2013 16:34:54 +0000 (16:34 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 7 Mar 2013 18:07:27 +0000 (18:07 +0000)
commit564e7d38a2ac686d7dee02761c5b4c7a5cff0a51
tree1c7d1033f00fc17d9a1f55b21e1667f182873345
parentc25426dc40b5b252f7f6e4d85da2484f8d2bcf3d
Don't import loop.h unless HAVE_DECL_LO_FLAGS_AUTOCLEAR is defined

The loop.h on RHEL4 is broken and cannot be imported. We already
detect this in configure as a side-effect of looking for whether
LO_FLAGS_AUTOCLEAR is available. We protected the impl with
HAVE_DECL_LO_FLAGS_AUTOCLEAR, but not the header import

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/util/virfile.c