From patchwork Tue May 1 08:58:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/8] linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts Date: Mon, 30 Apr 2012 22:58:55 -0000 From: Alexander Graf X-Patchwork-Id: 156034 Message-Id: <1335862740-17408-4-git-send-email-agraf@suse.de> To: qemu-devel Developers Cc: blauwirbel@gmail.com, qemu-ppc@nongnu.org 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 --- thunk.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/thunk.h b/thunk.h index 5be8f91..87025c3 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(void *); #else return 2; #endif