From 070489975d3a61aeebeedbc5a53d9a99197ca984 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 31 Dec 2009 09:19:05 +0000 Subject: [PATCH] * ext/socket/rubysocket.h: include addrinfo.h only when using our own getaddrinfo.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/socket/rubysocket.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 53c2e16862..397384675f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 31 18:18:55 2009 NAKAMURA Usaku + + * ext/socket/rubysocket.h: include addrinfo.h only when using our own + getaddrinfo.c. + Thu Dec 31 14:20:11 2009 NAKAMURA Usaku * process.c (save_redirect_fd): consider EBADF that the fd is not used. diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h index 9f1bd6a62a..51644887e8 100644 --- a/ext/socket/rubysocket.h +++ b/ext/socket/rubysocket.h @@ -97,7 +97,9 @@ */ #define pseudo_AF_FTIP pseudo_AF_RTIP +#ifndef HAVE_GETADDRINFO #include "addrinfo.h" +#endif #include "sockport.h" #ifndef NI_MAXHOST