summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-31 09:17:27 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-31 09:17:27 +0000
commitaea59a741c26696f2c4530e73d3b10692b4ad3db (patch)
tree15027a3073de82e9e46e9c16176b019ceffd29b8 /ext/socket/socket.c
parent36f93387071e9a92b3c6790a1ccb9f504d24ec3c (diff)
* ext/socket/socket.c: include addrinfo.h only when using our own
getaddrinfo.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 4f8cf07218..0d675bc66b 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -69,7 +69,9 @@
#ifndef EWOULDBLOCK
#define EWOULDBLOCK EAGAIN
#endif
+#ifndef HAVE_GETADDRINFO
#include "addrinfo.h"
+#endif
#include "sockport.h"
#if defined(__vms)