From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IncIj-0004Xm-CQ for qemu-devel@nongnu.org; Thu, 01 Nov 2007 11:49:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IncIh-0004XT-HV for qemu-devel@nongnu.org; Thu, 01 Nov 2007 11:49:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IncIh-0004XQ-BM for qemu-devel@nongnu.org; Thu, 01 Nov 2007 11:49:43 -0400 Received: from moutng.kundenserver.de ([212.227.126.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IncIg-00029s-RC for qemu-devel@nongnu.org; Thu, 01 Nov 2007 11:49:43 -0400 Message-ID: <4729F593.9030909@mail.berlios.de> Date: Thu, 01 Nov 2007 16:49:39 +0100 From: Stefan Weil MIME-Version: 1.0 Subject: [Qemu-devel] [PATCH] Fix compilation bug in slirp code Content-Type: multipart/mixed; boundary="------------040607010804050006040302" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers This is a multi-part message in MIME format. --------------040607010804050006040302 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Hi, tcpemu is a global variable (declared in slirp/misc.h). A later "static" declaration raises a compilation error with newer gcc versions. The patch fixes the declaration in slirp/tcp_subr.c. Regards Stefan --------------040607010804050006040302 Content-Type: text/x-diff; name="tcp_subr.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tcp_subr.patch" Index: slirp/tcp_subr.c =================================================================== RCS file: /sources/qemu/qemu/slirp/tcp_subr.c,v retrieving revision 1.12 diff -u -r1.12 tcp_subr.c --- slirp/tcp_subr.c 26 Oct 2007 19:34:46 -0000 1.12 +++ slirp/tcp_subr.c 1 Nov 2007 10:22:57 -0000 @@ -559,7 +559,7 @@ {0, 0, 0, 0} }; -static struct emu_t *tcpemu = 0; +struct emu_t *tcpemu; /* * Return TOS according to the above table --------------040607010804050006040302--