mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
{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:
parent
3b62e8e78b
commit
8202d6266f
3 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -80,6 +80,10 @@
|
|||
#include <socks.h>
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_TYPE_SOCKLEN_T
|
||||
typedef int socklen_t;
|
||||
#endif
|
||||
|
||||
#include "addrinfo.h"
|
||||
#include "sockport.h"
|
||||
|
||||
|
|
|
@ -71,6 +71,10 @@
|
|||
#include <socks.h>
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_TYPE_SOCKLEN_T
|
||||
typedef int socklen_t;
|
||||
#endif
|
||||
|
||||
#include "addrinfo.h"
|
||||
#include "sockport.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue