{getaddrinfo,getnameinfo}.c: fix for old platforms

* ext/socket/{getaddrinfo,getnameinfo}.c: define socklen_t if not
  defined, e.g., older VC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-05-03 04:35:37 +00:00
parent 3b62e8e78b
commit 8202d6266f
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri May 3 13:35:26 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/socket/{getaddrinfo,getnameinfo}.c: define socklen_t if not
defined, e.g., older VC.
Fri May 3 13:29:11 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/win32.h (INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX): also

View File

@ -80,6 +80,10 @@
#include <socks.h>
#endif
#ifndef HAVE_TYPE_SOCKLEN_T
typedef int socklen_t;
#endif
#include "addrinfo.h"
#include "sockport.h"

View File

@ -71,6 +71,10 @@
#include <socks.h>
#endif
#ifndef HAVE_TYPE_SOCKLEN_T
typedef int socklen_t;
#endif
#include "addrinfo.h"
#include "sockport.h"