* ext/socket/socket.c (ruby_connect): sockerrlen should be socklen_t.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2006-09-02 21:27:16 +00:00
parent c76ff0753e
commit f80cbcf912
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Sun Sep 3 06:24:38 2006 Tanaka Akira <akr@fsij.org>
* ext/socket/socket.c (ruby_connect): sockerrlen should be socklen_t.
Sun Sep 3 04:40:42 2006 Tanaka Akira <akr@fsij.org> Sun Sep 3 04:40:42 2006 Tanaka Akira <akr@fsij.org>
* ext/socket/extconf.rb: check arpa/inet.h for ntohs. * ext/socket/extconf.rb: check arpa/inet.h for ntohs.

View File

@ -1071,7 +1071,8 @@ ruby_connect(int fd, struct sockaddr *sockaddr, int len, int socks)
int mode; int mode;
#if WAIT_IN_PROGRESS > 0 #if WAIT_IN_PROGRESS > 0
int wait_in_progress = -1; int wait_in_progress = -1;
int sockerr, sockerrlen; int sockerr;
socklen_t sockerrlen;
#endif #endif
#if defined(HAVE_FCNTL) #if defined(HAVE_FCNTL)