summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-31 09:19:05 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-31 09:19:05 +0000
commit070489975d3a61aeebeedbc5a53d9a99197ca984 (patch)
tree3899b4915d7590102a46a44ddf958c9074502a90 /ext/socket
parent96abe7f35e3e03a861ea2b1bf7cc6e62a0615b3c (diff)
* 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
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/rubysocket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h
index 9f1bd6a..5164488 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