slirp: Accommodate building under newer C++ compilers
This commit is contained in:
parent
ee45ae1a08
commit
9e60a8e783
2 changed files with 62 additions and 61 deletions
|
@ -314,7 +314,7 @@ void slirp_pollfds_fill(GArray *pollfds, uint32_t *timeout)
|
||||||
|
|
||||||
for (so = slirp->tcb.so_next; so != &slirp->tcb;
|
for (so = slirp->tcb.so_next; so != &slirp->tcb;
|
||||||
so = so_next) {
|
so = so_next) {
|
||||||
int events = 0;
|
gushort events = 0;
|
||||||
|
|
||||||
so_next = so->so_next;
|
so_next = so->so_next;
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
#define inline __inline
|
#define inline __inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define register
|
||||||
|
|
||||||
#if defined __GNUC__
|
#if defined __GNUC__
|
||||||
# if !QEMU_GNUC_PREREQ(4, 4)
|
# if !QEMU_GNUC_PREREQ(4, 4)
|
||||||
|
|
Loading…
Add table
Reference in a new issue