qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PATCH] linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts


From: Alexander Graf
Subject: [Qemu-ppc] [PATCH] linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts
Date: Thu, 19 Apr 2012 16:23:50 +0200

On my PPC host, HOST_LONG_SIZE is not defined even after
running configure. Use the normal C way of determining the
long size instead.

Signed-off-by: Alexander Graf <address@hidden>
---
 thunk.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/thunk.h b/thunk.h
index 5be8f91..27bb22a 100644
--- a/thunk.h
+++ b/thunk.h
@@ -113,7 +113,7 @@ static inline int thunk_type_size(const argtype *type_ptr, 
int is_host)
       defined(HOST_PARISC) || defined(HOST_SPARC64)
             return 4;
 #elif defined(HOST_PPC)
-            return HOST_LONG_SIZE;
+            return sizeof(long);
 #else
             return 2;
 #endif
-- 
1.6.0.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]