* net.cc (cygwin_accept): Allow NULL peer and len parameters.

* include/cygwin/socket.h: Define socklen_t as int.
This commit is contained in:
Corinna Vinschen
2001-08-03 12:06:29 +00:00
parent dce6f56397
commit 7eb971a561
3 changed files with 20 additions and 0 deletions

View File

@ -40,6 +40,10 @@ struct msghdr
int msg_accrightslen; /* Length of rights list */
};
#ifndef socklen_t
#define socklen_t int
#endif
/* Socket types. */
#define SOCK_STREAM 1 /* stream (connection) socket */
#define SOCK_DGRAM 2 /* datagram (conn.less) socket */