diff mbox

qemu-kvm: fix compiler warning

Message ID 20090427080724.GA30242@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael S. Tsirkin April 27, 2009, 8:07 a.m. UTC
kvm-common.h:25:7: warning: "__ia64__" is not defined

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 kvm/libkvm/kvm-common.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Avi Kivity May 4, 2009, 10:07 a.m. UTC | #1
Michael S. Tsirkin wrote:
> kvm-common.h:25:7: warning: "__ia64__" is not defined
>   

Went in by another route.
diff mbox

Patch

diff --git a/kvm/libkvm/kvm-common.h b/kvm/libkvm/kvm-common.h
index 96361e8..591fb53 100644
--- a/kvm/libkvm/kvm-common.h
+++ b/kvm/libkvm/kvm-common.h
@@ -22,7 +22,7 @@ 
 #define KVM_MAX_NUM_MEM_REGIONS 1u
 #define MAX_VCPUS 64
 #define LIBKVM_S390_ORIGIN (0UL)
-#elif __ia64__
+#elif defined(__ia64__)
 #define KVM_MAX_NUM_MEM_REGIONS 32u
 #define MAX_VCPUS 256
 #else