Fix 32bit compilation
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
		
							parent
							
								
									a11202d9e2
								
							
						
					
					
						commit
						6d76ba5956
					
				
							
								
								
									
										32
									
								
								32bit-fix.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								32bit-fix.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| From 0d49ef856846eac919725ad0278451e94c78d9ff Mon Sep 17 00:00:00 2001 | ||||
| From: Cole Robinson <crobinso@redhat.com> | ||||
| Date: Mon, 1 Mar 2021 13:15:37 -0500 | ||||
| Subject: [PATCH] hyperv: Fix 32bit compilation | ||||
| 
 | ||||
| Signed-off-by: Cole Robinson <crobinso@redhat.com> | ||||
| ---
 | ||||
|  src/hyperv/hyperv_driver.c | 4 ++-- | ||||
|  1 file changed, 2 insertions(+), 2 deletions(-) | ||||
| 
 | ||||
| diff --git a/src/hyperv/hyperv_driver.c b/src/hyperv/hyperv_driver.c
 | ||||
| index 701456cdb3..e4f537bd12 100644
 | ||||
| --- a/src/hyperv/hyperv_driver.c
 | ||||
| +++ b/src/hyperv/hyperv_driver.c
 | ||||
| @@ -3004,7 +3004,7 @@ hypervDomainDefineXML(virConnectPtr conn, const char *xml)
 | ||||
|      /* Attach serials */ | ||||
|      for (i = 0; i < def->nserials; i++) { | ||||
|          if (hypervDomainAttachSerial(domain, def->serials[i]) < 0) { | ||||
| -            virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach serial port %lu"), i);
 | ||||
| +            virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach serial port %zu"), i);
 | ||||
|              goto error; | ||||
|          } | ||||
|      } | ||||
| @@ -3012,7 +3012,7 @@ hypervDomainDefineXML(virConnectPtr conn, const char *xml)
 | ||||
|      /* Attach networks */ | ||||
|      for (i = 0; i < def->nnets; i++) { | ||||
|          if (hypervDomainAttachSyntheticEthernetAdapter(domain, def->nets[i], hostname) < 0) { | ||||
| -            virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach network %lu"), i);
 | ||||
| +            virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach network %zu"), i);
 | ||||
|              goto error; | ||||
|          } | ||||
|      } | ||||
| @ -227,6 +227,7 @@ URL: https://libvirt.org/ | ||||
|     %define mainturl stable_updates/ | ||||
| %endif | ||||
| Source: https://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.xz | ||||
| Patch1: 32bit-fix.patch | ||||
| 
 | ||||
| Requires: libvirt-daemon = %{version}-%{release} | ||||
| Requires: libvirt-daemon-config-network = %{version}-%{release} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user