From: Alexander Graf Date: Mon, 30 Apr 2012 22:58:55 +0000 (+0000) Subject: linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts X-Git-Tag: v1.1-rc0~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65074706b9353bae7307fcfcbbf63a36f6896aa7;p=thirdparty%2Fqemu.git 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 --- diff --git a/thunk.h b/thunk.h index 5be8f912f5e..87025c3b04d 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