summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-02 07:13:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-02 07:13:56 +0000
commite193fd8d665567c7f3b827c21a1b77af43e2c391 (patch)
tree6941b26e87693c8919f4c87fb03f6345a54cb0c4 /ext
parent96986a7a9019ff063e2ef3ecbe223c0b23c68d52 (diff)
* pack.c (utf8_to_uv): added checks for malformed or redundant
UTF-8 sequences. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/socket.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 17df447..54dbaaf 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -2922,4 +2922,19 @@ Init_socket()
#ifdef NI_DGRAM
sock_define_const("NI_DGRAM", NI_DGRAM);
#endif
+#ifdef SHUT_RD
+ sock_define_const("SHUT_RD", SHUT_RD);
+#else
+ sock_define_const("SHUT_RD", 0);
+#endif
+#ifdef SHUT_WR
+ sock_define_const("SHUT_WR", SHUT_WR);
+#else
+ sock_define_const("SHUT_WR", 1);
+#endif
+#ifdef SHUT_RDWR
+ sock_define_const("SHUT_RDWR", SHUT_RDWR);
+#else
+ sock_define_const("SHUT_RDWR", 2);
+#endif
}