summaryrefslogtreecommitdiffstats
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-28 14:18:41 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-28 14:18:41 +0000
commitb6011f3d80fb622789fc249e63975f38c822ff98 (patch)
tree4e4f82f4da63f0edbc3763a6b726b8d605b56ed6 /ext/socket/socket.c
parent211eb7e343179cd9ba808640ab51bdfe871475e6 (diff)
downloadruby-b6011f3d80fb622789fc249e63975f38c822ff98.tar.gz
ruby-b6011f3d80fb622789fc249e63975f38c822ff98.tar.xz
ruby-b6011f3d80fb622789fc249e63975f38c822ff98.zip
* ext/socket/socket.c (Init_socket): IPv6 is not supported although
AF_INET6 is defined on bcc32. (rev1.108 again) * ext/socket/mkconstants.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 16442b444..17aa3661c 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -2643,5 +2643,9 @@ Init_socket()
/* constants */
mConst = rb_define_module_under(rb_cSocket, "Constants");
- #include "constants.h"
+#include "constants.h"
+#ifdef INET6 /* IPv6 is not supported although AF_INET6 is defined on bcc32/mingw */
+ sock_define_const("AF_INET6", AF_INET6);
+ sock_define_const("PF_INET6", PF_INET6);
+#endif
}