From: Stefan Weil <weil@mail.berlios.de>
To: QEMU Developers <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH] Fix compilation bug in slirp code
Date: Thu, 01 Nov 2007 16:49:39 +0100 [thread overview]
Message-ID: <4729F593.9030909@mail.berlios.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 212 bytes --]
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
[-- Attachment #2: tcp_subr.patch --]
[-- Type: text/x-diff, Size: 441 bytes --]
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
next reply other threads:[~2007-11-01 15:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-01 15:49 Stefan Weil [this message]
2007-11-01 19:19 ` [Qemu-devel] [PATCH] Fix compilation bug in slirp code Blue Swirl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4729F593.9030909@mail.berlios.de \
--to=weil@mail.berlios.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).