summaryrefslogtreecommitdiffstats
path: root/ext/socket
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-07 05:44:43 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-07 05:44:43 +0000
commit51205218f43dd36f5191727becc1bdb07d201102 (patch)
tree8e4142851ee757d55dbd32b751f45d5ce28ad2bf /ext/socket
parent3eaa6ddf60bb04bf9c457ef99f833ebfa80da65b (diff)
downloadruby-51205218f43dd36f5191727becc1bdb07d201102.tar.gz
ruby-51205218f43dd36f5191727becc1bdb07d201102.tar.xz
ruby-51205218f43dd36f5191727becc1bdb07d201102.zip
* configure.in, common.mk: AIX link issue. a patch from Yutaka
Kanemoto <kinpoco at gmail.com>. [ruby-dev:29190] * ext/socket/socket.c: AIX socket support. [ruby-dev:29190] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/socket.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 113b60c0c..2badf1b27 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -185,6 +185,12 @@ ruby_getaddrinfo__aix(char *nodename, char *servname,
}
#undef getaddrinfo
#define getaddrinfo(node,serv,hints,res) ruby_getaddrinfo__aix((node),(serv),(hints),(res))
+#ifndef CMSG_SPACE
+# define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len))
+#endif
+#ifndef CMSG_LEN
+# define CMSG_LEN(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
+#endif
#endif
#ifdef __BEOS__