[partition] Fix build w/ "3.3.1" API

- Need older-style scanning, but new-style iteration
This commit is contained in:
Adriaan de Groot 2019-04-12 12:54:13 +02:00
parent 4e24ea29e2
commit c844188907

View File

@ -683,14 +683,17 @@ PartitionCoreModule::scanForLVMPVs()
}
}
#ifdef WITH_KPMCORE4API
#if defined( WITH_KPMCORE4API )
VolumeManagerDevice::scanDevices( physicalDevices );
for ( auto p : LVM::pvList::list() )
#else
#if defined( WITH_KPMCORE331API )
LvmDevice::scanSystemLVM( physicalDevices );
for ( auto p : LVM::pvList::list() )
#else
LvmDevice::scanSystemLVM( physicalDevices );
for ( auto p : LVM::pvList )
#endif
#endif
{
m_lvmPVs << p.partition().data();