From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DvGtj-0001E0-FJ for qemu-devel@nongnu.org; Wed, 20 Jul 2005 11:54:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DvGqs-0000V4-QA for qemu-devel@nongnu.org; Wed, 20 Jul 2005 11:51:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DvGqo-0000OQ-5U for qemu-devel@nongnu.org; Wed, 20 Jul 2005 11:51:14 -0400 Received: from [65.74.133.11] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DvGg2-0007AL-JU for qemu-devel@nongnu.org; Wed, 20 Jul 2005 11:40:06 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Can you commit the pcnet patch ? Date: Wed, 20 Jul 2005 16:29:59 +0100 References: <42DE282A.3080102@linbox.com> <46d6db6605072007454a2024d0@mail.gmail.com> <46d6db6605072008197166ffbb@mail.gmail.com> In-Reply-To: <46d6db6605072008197166ffbb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507201630.00301.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Christian MICHON > I get the following error: > In file included from C:/dev/msys/1.0/home/xian/qemu-0.7.0/hw/pcnet.c:64: > C:/dev/msys/1.0/home/xian/qemu-0.7.0/hw/pcnet.h: In function `padr_match': > C:/dev/msys/1.0/home/xian/qemu-0.7.0/hw/pcnet.h:531: error: > dereferencing pointer to incomplete type >... > struct ether_header *hdr = (void *)buf; > uint8_t padr[6] = { > s->csr[12] & 0xff, s->csr[12] >> 8, > s->csr[13] & 0xff, s->csr[13] >> 8, > s->csr[14] & 0xff, s->csr[14] >> 8 > }; > int result = (!CSR_DRCVPA(s)) && !memcmp(hdr->ether_dhost, padr, 6); Probably win32 doesn't have a definition for "struct ether_header". Paul