From patchwork Sun Aug 28 20:43:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 111941 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 0C94EB6F71 for ; Mon, 29 Aug 2011 06:44:09 +1000 (EST) Received: from localhost ([::1]:36589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxmD2-0003XD-FU for incoming@patchwork.ozlabs.org; Sun, 28 Aug 2011 16:44:00 -0400 Received: from eggs.gnu.org ([140.186.70.92]:56529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxmCc-000366-Ah for qemu-devel@nongnu.org; Sun, 28 Aug 2011 16:43:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxmCb-000270-6D for qemu-devel@nongnu.org; Sun, 28 Aug 2011 16:43:34 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:38005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxmCb-00026s-1Y for qemu-devel@nongnu.org; Sun, 28 Aug 2011 16:43:33 -0400 Received: from localhost (v220110690675601.yourvserver.net.local [127.0.0.1]) by v220110690675601.yourvserver.net (Postfix) with ESMTP id 7484A7283049; Sun, 28 Aug 2011 22:43:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at weilnetz.de Received: from v220110690675601.yourvserver.net ([127.0.0.1]) by localhost (v220110690675601.yourvserver.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Se9XH86dQdXK; Sun, 28 Aug 2011 22:43:30 +0200 (CEST) Received: from flocke.weilnetz.de (p54ADA446.dip.t-dialin.net [84.173.164.70]) by v220110690675601.yourvserver.net (Postfix) with ESMTPSA id 442867283048; Sun, 28 Aug 2011 22:43:30 +0200 (CEST) Received: from stefan by flocke.weilnetz.de with local (Exim 4.72) (envelope-from ) id 1QxmCT-0001nl-W2; Sun, 28 Aug 2011 22:43:25 +0200 From: Stefan Weil To: QEMU Developers Date: Sun, 28 Aug 2011 22:43:20 +0200 Message-Id: <1314564200-6872-8-git-send-email-weil@mail.berlios.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1314564200-6872-1-git-send-email-weil@mail.berlios.de> References: <1314564200-6872-1-git-send-email-weil@mail.berlios.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 78.47.199.172 Cc: Jan Kiszka Subject: [Qemu-devel] [PATCH 7/7] slirp: Fix packing for w32 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 Use QEMU_PACKED to eliminate the effects of compiler option -mms-bitfields. Cc: Jan Kiszka Signed-off-by: Stefan Weil --- slirp/slirp.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index dcf99d5..28a5c03 100644 --- a/slirp/slirp.h +++ b/slirp/slirp.h @@ -199,7 +199,7 @@ struct arphdr { uint32_t ar_sip; /* sender IP address */ unsigned char ar_tha[ETH_ALEN]; /* target hardware address */ uint32_t ar_tip; /* target IP address */ -} __attribute__((packed)); +} QEMU_PACKED; #define ARP_TABLE_SIZE 16