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
|
@ -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…
Add table
Add a link
Reference in a new issue