diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-07 05:44:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-07 05:44:43 +0000 |
commit | 51205218f43dd36f5191727becc1bdb07d201102 (patch) | |
tree | 8e4142851ee757d55dbd32b751f45d5ce28ad2bf /ext/socket | |
parent | 3eaa6ddf60bb04bf9c457ef99f833ebfa80da65b (diff) | |
download | ruby-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.c | 6 |
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__ |