diff --git a/slirp/misc.h b/slirp/misc.h index eee740575..e405e38dc 100644 --- a/slirp/misc.h +++ b/slirp/misc.h @@ -63,7 +63,9 @@ struct emu_t { struct emu_t *next; }; +#ifndef CONFIG_QEMU extern struct emu_t *tcpemu; +#endif extern int x_port, x_server, x_display; diff --git a/slirp/tcp_subr.c b/slirp/tcp_subr.c index 7d7127054..ba1296d4b 100644 --- a/slirp/tcp_subr.c +++ b/slirp/tcp_subr.c @@ -559,7 +559,10 @@ static const struct tos_t tcptos[] = { {0, 0, 0, 0} }; -static struct emu_t *tcpemu = 0; +#ifdef CONFIG_QEMU +static +#endif +struct emu_t *tcpemu = 0; /* * Return TOS according to the above table