From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPJ6G-00027w-Bf for qemu-devel@nongnu.org; Tue, 01 May 2012 15:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPJ6B-0004UX-Jy for qemu-devel@nongnu.org; Tue, 01 May 2012 15:51:03 -0400 From: Alexander Graf Date: Tue, 1 May 2012 21:50:52 +0200 Message-Id: <1335901857-29799-4-git-send-email-agraf@suse.de> In-Reply-To: <1335901857-29799-1-git-send-email-agraf@suse.de> References: <1335901857-29799-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 3/8] linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 -- 1.6.0.2