diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index d65e26b45d91fd1f53dc877a4c2338d820159e0e..9c1eeacadaf0ed56d1ec192359c5d2eebd5e0550 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -2398,7 +2398,7 @@ virQEMUCapsGet(virQEMUCapsPtr qemuCaps,
 
 
 bool virQEMUCapsHasPCIMultiBus(virQEMUCapsPtr qemuCaps,
-                               virDomainDefPtr def)
+                               const virDomainDef *def)
 {
     /* x86_64 and i686 support PCI-multibus on all machine types
      * since forever */
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
index daeb6294cce3e0a05a65533375a47cb2191165d0..241764824c78b04b4ab3c8d2bec9ddaddee2e7f9 100644
--- a/src/qemu/qemu_capabilities.h
+++ b/src/qemu/qemu_capabilities.h
@@ -456,7 +456,7 @@ bool virQEMUCapsGet(virQEMUCapsPtr qemuCaps,
                     virQEMUCapsFlags flag);
 
 bool virQEMUCapsHasPCIMultiBus(virQEMUCapsPtr qemuCaps,
-                               virDomainDefPtr def);
+                               const virDomainDef *def);
 
 bool virQEMUCapsSupportsVmport(virQEMUCapsPtr qemuCaps,
                                const virDomainDef *def);