Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-08-03 16:06:29 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-08-03 16:06:29 +0400
commit7eb971a561ec030f1684649b8e30674d20e25a13 (patch)
treea4ce08de521ca7eec1b17761f5f49485c11940ff /winsup/cygwin/include
parentdce6f5639766db7bafd72308ebd1c848d257e2ef (diff)
* net.cc (cygwin_accept): Allow NULL peer and len parameters.
* include/cygwin/socket.h: Define socklen_t as int.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/socket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/include/cygwin/socket.h b/winsup/cygwin/include/cygwin/socket.h
index c7191ffb3..da747fd3d 100644
--- a/winsup/cygwin/include/cygwin/socket.h
+++ b/winsup/cygwin/include/cygwin/socket.h
@@ -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 */