mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merges r29242 from trunk into ruby_1_9_2.
-- * 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/branches/ruby_1_9_2@29796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8ff17ef269
commit
33ed9f92ba
4 changed files with 17 additions and 3 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Mon Sep 13 19:56:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/socket/rubysocket.h (__DARWIN_ALIGNBYTES): workaround of a
|
||||
bug in system header of darwin 9. [ruby-core:32341]
|
||||
|
||||
Mon Sep 13 10:12:09 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* util.c (ruby_strtod): reject Float('0x0.').
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -138,6 +138,16 @@ struct sockaddr_storage {
|
|||
};
|
||||
#endif
|
||||
|
||||
#if defined __APPLE__ && defined __MACH__
|
||||
/*
|
||||
* CMSG_ macros are broken on 64bit darwin, because __DARWIN_ALIGN
|
||||
* aligns up to __darwin_size_t which is 64bit, but CMSG_DATA is
|
||||
* 32bit-aligned.
|
||||
*/
|
||||
#undef __DARWIN_ALIGNBYTES
|
||||
#define __DARWIN_ALIGNBYTES (sizeof(unsigned int) - 1)
|
||||
#endif
|
||||
|
||||
#if defined(_AIX)
|
||||
#ifndef CMSG_SPACE
|
||||
# define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len))
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#define RUBY_VERSION "1.9.2"
|
||||
#define RUBY_PATCHLEVEL 40
|
||||
#define RUBY_PATCHLEVEL 41
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
#define RUBY_VERSION_MINOR 9
|
||||
#define RUBY_VERSION_TEENY 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue