Commit 7c829863fb83e39a77859cfc263441670d9f058a
1 parent
33189d31
Fix slirp compilation failure when using a newer gcc
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3505 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
6 additions
and
1 deletions
slirp/misc.h
slirp/tcp_subr.c
... | ... | @@ -559,7 +559,10 @@ static const struct tos_t tcptos[] = { |
559 | 559 | {0, 0, 0, 0} |
560 | 560 | }; |
561 | 561 | |
562 | -static struct emu_t *tcpemu = 0; | |
562 | +#ifdef CONFIG_QEMU | |
563 | +static | |
564 | +#endif | |
565 | +struct emu_t *tcpemu = 0; | |
563 | 566 | |
564 | 567 | /* |
565 | 568 | * Return TOS according to the above table | ... | ... |