[前][次][番号順一覧][スレッド一覧]

ruby-changes:28516

From: nobu <ko1@a...>
Date: Fri, 3 May 2013 13:35:49 +0900 (JST)
Subject: [ruby-changes:28516] nobu:r40568 (trunk): {getaddrinfo,getnameinfo}.c: fix for old platforms

nobu	2013-05-03 13:35:37 +0900 (Fri, 03 May 2013)

  New Revision: 40568

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40568

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

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/getaddrinfo.c
    trunk/ext/socket/getnameinfo.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40567)
+++ ChangeLog	(revision 40568)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri May  3 13:35:26 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* include/ruby/win32.h (INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX): also
Index: ext/socket/getaddrinfo.c
===================================================================
--- ext/socket/getaddrinfo.c	(revision 40567)
+++ ext/socket/getaddrinfo.c	(revision 40568)
@@ -80,6 +80,10 @@ https://github.com/ruby/ruby/blob/trunk/ext/socket/getaddrinfo.c#L80
 #include <socks.h>
 #endif
 
+#ifndef HAVE_TYPE_SOCKLEN_T
+typedef int socklen_t;
+#endif
+
 #include "addrinfo.h"
 #include "sockport.h"
 
Index: ext/socket/getnameinfo.c
===================================================================
--- ext/socket/getnameinfo.c	(revision 40567)
+++ ext/socket/getnameinfo.c	(revision 40568)
@@ -71,6 +71,10 @@ https://github.com/ruby/ruby/blob/trunk/ext/socket/getnameinfo.c#L71
 #include <socks.h>
 #endif
 
+#ifndef HAVE_TYPE_SOCKLEN_T
+typedef int socklen_t;
+#endif
+
 #include "addrinfo.h"
 #include "sockport.h"
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]