slirp: Accommodate building under newer C++ compilers

This commit is contained in:
Mark Pizzolato 2018-07-15 07:37:54 -07:00
parent ee45ae1a08
commit 9e60a8e783
2 changed files with 62 additions and 61 deletions

View file

@ -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;

View file

@ -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)