parent
32e5995503
commit
4aae1110ad
|
@ -38,7 +38,12 @@ struct request_info *request;
|
||||||
#ifdef IP_OPTIONS
|
#ifdef IP_OPTIONS
|
||||||
unsigned char optbuf[BUFFER_SIZE / 3], *cp;
|
unsigned char optbuf[BUFFER_SIZE / 3], *cp;
|
||||||
char lbuf[BUFFER_SIZE], *lp;
|
char lbuf[BUFFER_SIZE], *lp;
|
||||||
|
#ifdef __GLIBC__
|
||||||
|
socklen_t optsize = sizeof(optbuf);
|
||||||
|
int ipproto;
|
||||||
|
#else
|
||||||
int optsize = sizeof(optbuf), ipproto;
|
int optsize = sizeof(optbuf), ipproto;
|
||||||
|
#endif
|
||||||
struct protoent *ip;
|
struct protoent *ip;
|
||||||
int fd = request->fd;
|
int fd = request->fd;
|
||||||
unsigned int opt;
|
unsigned int opt;
|
||||||
|
|
8
socket.c
8
socket.c
|
@ -95,7 +95,11 @@ struct request_info *request;
|
||||||
static struct sockaddr_in client;
|
static struct sockaddr_in client;
|
||||||
static struct sockaddr_in server;
|
static struct sockaddr_in server;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __GLIBC__
|
||||||
|
socklen_t len;
|
||||||
|
#else
|
||||||
int len;
|
int len;
|
||||||
|
#endif
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
int fd = request->fd;
|
int fd = request->fd;
|
||||||
|
|
||||||
|
@ -426,7 +430,11 @@ int fd;
|
||||||
#else
|
#else
|
||||||
struct sockaddr_in sin;
|
struct sockaddr_in sin;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __GLIBC__
|
||||||
|
socklen_t size = sizeof(sin);
|
||||||
|
#else
|
||||||
int size = sizeof(sin);
|
int size = sizeof(sin);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Eat up the not-yet received datagram. Some systems insist on a
|
* Eat up the not-yet received datagram. Some systems insist on a
|
||||||
|
|
Loading…
Reference in New Issue