[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix compilation bug in slirp code
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH] Fix compilation bug in slirp code |
Date: |
Thu, 01 Nov 2007 16:49:39 +0100 |
User-agent: |
IceDove 1.5.0.14pre (X11/20071018) |
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
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
- [Qemu-devel] [PATCH] Fix compilation bug in slirp code,
Stefan Weil <=