diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-13 10:56:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-13 10:56:52 +0000 |
commit | 4c916ec8b735d1b526d7ec93b4072101bf16a2fc (patch) | |
tree | c768aeea8a3704346caa385167747aba5516b1e1 /ext/socket/extconf.rb | |
parent | 3e86bd8f3ad76dca34a61e2f0053cbcfd18e7eae (diff) |
* ext/socket/rubysocket.h (__DARWIN_ALIGNBYTES): workaround of a
bug in system header of darwin 9. [ruby-core:32341]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r-- | ext/socket/extconf.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 7c31030d72..a6bc9bb46c 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -117,8 +117,7 @@ if !have_macro("IPPROTO_IPV6", headers) && have_const("IPPROTO_IPV6", headers) } end -if (have_func("sendmsg") | have_func("recvmsg")) && /64-darwin/ !~ RUBY_PLATFORM - # CMSG_ macros are broken on 64bit darwin, because of use of __DARWIN_ALIGN. +if have_func("sendmsg") | have_func("recvmsg") have_struct_member('struct msghdr', 'msg_control', ['sys/types.h', 'sys/socket.h']) have_struct_member('struct msghdr', 'msg_accrights', ['sys/types.h', 'sys/socket.h']) end |