use socklen_t with network functions

This commit is contained in:
Mike Frysinger 2009-03-06 01:42:41 +00:00
parent 89659d87d9
commit b7c6c3c10e
1 changed files with 5 additions and 1 deletions

View File

@ -95,6 +95,10 @@
#endif
#define MAXHOSTNAMELEN 256
#ifndef HAVE_SOCKLEN_T
#define socklen_t int
#endif
struct host_poop {
char name[MAXHOSTNAMELEN]; /* dns name */
char addrs[8][24]; /* ascii-format IP addresses */
@ -775,7 +779,7 @@ int dolisten (rad, rp, lad, lp)
register int nnetfd;
register int rr;
HINF * whozis = NULL;
int x;
socklen_t x;
char * cp;
USHORT z;
errno = 0;