From patchwork Thu Apr 19 14:23:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 153782 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 34DB6B6FBC for ; Fri, 20 Apr 2012 00:24:12 +1000 (EST) Received: from localhost ([::1]:55533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKsHK-0003mM-19 for incoming@patchwork.ozlabs.org; Thu, 19 Apr 2012 10:24:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKsH8-0003lO-9M for qemu-devel@nongnu.org; Thu, 19 Apr 2012 10:24:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKsH2-0002Sl-4y for qemu-devel@nongnu.org; Thu, 19 Apr 2012 10:23:57 -0400 Received: from cantor2.suse.de ([195.135.220.15]:40061 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKsH1-0002Sb-Ut; Thu, 19 Apr 2012 10:23:52 -0400 Received: from relay1.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 90B8A93DA1; Thu, 19 Apr 2012 16:23:50 +0200 (CEST) From: Alexander Graf To: qemu-devel qemu-devel Date: Thu, 19 Apr 2012 16:23:50 +0200 Message-Id: <1334845430-24120-1-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.6.0.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 195.135.220.15 Cc: riku.voipio@linaro.org, qemu-ppc@nongnu.org Subject: [Qemu-devel] [PATCH] linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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..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