6 |
|
*/ |
7 |
|
|
8 |
|
#define WANT_SYS_IOCTL_H |
9 |
+ |
#include <stdlib.h> |
10 |
|
#include <slirp.h> |
11 |
|
|
12 |
|
u_int curtime, time_fasttimo, last_slowtimo, detach_time; |
138 |
|
struct quehead *qh_rlink; |
139 |
|
}; |
140 |
|
|
141 |
< |
inline void |
141 |
> |
void |
142 |
|
insque(a, b) |
143 |
|
void *a, *b; |
144 |
|
{ |
151 |
|
= (struct quehead *)element; |
152 |
|
} |
153 |
|
|
154 |
< |
inline void |
154 |
> |
void |
155 |
|
remque(a) |
156 |
|
void *a; |
157 |
|
{ |
822 |
|
fd_nonblock(fd) |
823 |
|
int fd; |
824 |
|
{ |
825 |
< |
#ifdef FIONBIO |
826 |
< |
int opt = 1; |
825 |
> |
#if defined USE_FIONBIO && defined FIONBIO |
826 |
> |
ioctlsockopt_t opt = 1; |
827 |
|
|
828 |
|
ioctlsocket(fd, FIONBIO, &opt); |
829 |
|
#else |
839 |
|
fd_block(fd) |
840 |
|
int fd; |
841 |
|
{ |
842 |
< |
#ifdef FIONBIO |
843 |
< |
int opt = 0; |
842 |
> |
#if defined USE_FIONBIO && defined FIONBIO |
843 |
> |
ioctlsockopt_t opt = 0; |
844 |
|
|
845 |
|
ioctlsocket(fd, FIONBIO, &opt); |
846 |
|
#else |