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

ruby-changes:14384

From: usa <ko1@a...>
Date: Thu, 31 Dec 2009 18:19:20 +0900 (JST)
Subject: [ruby-changes:14384] Ruby:r26214 (trunk): * ext/socket/rubysocket.h: include addrinfo.h only when using our own

usa	2009-12-31 18:19:05 +0900 (Thu, 31 Dec 2009)

  New Revision: 26214

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

  Log:
    * ext/socket/rubysocket.h: include addrinfo.h only when using our own
      getaddrinfo.c.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/rubysocket.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26213)
+++ ChangeLog	(revision 26214)
@@ -1,3 +1,8 @@
+Thu Dec 31 18:18:55 2009  NAKAMURA Usaku  <usa@r...>
+
+	* ext/socket/rubysocket.h: include addrinfo.h only when using our own
+	  getaddrinfo.c.
+
 Thu Dec 31 14:20:11 2009  NAKAMURA Usaku  <usa@r...>
 
 	* process.c (save_redirect_fd): consider EBADF that the fd is not used.
Index: ext/socket/rubysocket.h
===================================================================
--- ext/socket/rubysocket.h	(revision 26213)
+++ ext/socket/rubysocket.h	(revision 26214)
@@ -97,7 +97,9 @@
  */
 #define pseudo_AF_FTIP pseudo_AF_RTIP
 
+#ifndef HAVE_GETADDRINFO
 #include "addrinfo.h"
+#endif
 #include "sockport.h"
 
 #ifndef NI_MAXHOST

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

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