diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/socket/rubysocket.h | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Thu Dec 31 18:18:55 2009 NAKAMURA Usaku <usa@ruby-lang.org> + + * ext/socket/rubysocket.h: include addrinfo.h only when using our own + getaddrinfo.c. + Thu Dec 31 14:20:11 2009 NAKAMURA Usaku <usa@ruby-lang.org> * 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 |