From 65074706b9353bae7307fcfcbbf63a36f6896aa7 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Mon, 30 Apr 2012 22:58:55 +0000 Subject: [PATCH] linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts 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 Signed-off-by: malc --- thunk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thunk.h b/thunk.h index 5be8f912f5..87025c3b04 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