summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-24 06:29:30 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-24 06:29:30 +0000
commitd68d1d15843125c6ae91055feb05f08b8c70e4f6 (patch)
treececed16ec6aa0d2b4083eb91dbca481ce2b70e0e /ext
parentdea6ce41b404df35944ab6063c614497b1b2984e (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/sockport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/socket/sockport.h b/ext/socket/sockport.h
index d19b1e1..e1cddf5 100644
--- a/ext/socket/sockport.h
+++ b/ext/socket/sockport.h
@@ -69,4 +69,8 @@
# define PF_INET AF_INET
#endif
+#if defined(HOST_NOT_FOUND) && !defined(h_errno) && !defined(__CYGWIN__)
+extern int h_errno;
+#endif
+
#endif