ruby-changes:16906
From: nobu <ko1@a...>
Date: Sat, 7 Aug 2010 17:49:34 +0900 (JST)
Subject: [ruby-changes:16906] Ruby:r28902 (trunk): * include/ruby/missing.h: moved BROKEN_CLOSE replacements from
nobu 2010-08-07 17:49:18 +0900 (Sat, 07 Aug 2010) New Revision: 28902 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28902 Log: * include/ruby/missing.h: moved BROKEN_CLOSE replacements from include/ruby/ruby.h. Modified files: trunk/ChangeLog trunk/include/ruby/missing.h trunk/include/ruby/ruby.h Index: include/ruby/missing.h =================================================================== --- include/ruby/missing.h (revision 28901) +++ include/ruby/missing.h (revision 28902) @@ -191,6 +191,14 @@ RUBY_EXTERN int ruby_getsockname(int, struct sockaddr *, socklen_t *); RUBY_EXTERN int ruby_shutdown(int, int); RUBY_EXTERN int ruby_close(int); +#undef getpeername +#define getpeername ruby_getpeername +#undef getsockname +#define getsockname ruby_getsockname +#undef shutdown +#define shutdown ruby_shutdown +#undef close +#define close ruby_close #endif #if defined __GNUC__ && __GNUC__ >= 4 Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 28901) +++ include/ruby/ruby.h (revision 28902) @@ -1438,17 +1438,6 @@ #define snprintf ruby_snprintf #define vsnprintf ruby_vsnprintf -#ifdef BROKEN_CLOSE -#undef getpeername -#define getpeername ruby_getpeername -#undef getsockname -#define getsockname ruby_getsockname -#undef shutdown -#define shutdown ruby_shutdown -#undef close -#define close ruby_close -#endif - #if defined __GNUC__ && __GNUC__ >= 4 #pragma GCC visibility pop #endif Index: ChangeLog =================================================================== --- ChangeLog (revision 28901) +++ ChangeLog (revision 28902) @@ -1,3 +1,8 @@ +Sat Aug 7 17:49:10 2010 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/missing.h: moved BROKEN_CLOSE replacements from + include/ruby/ruby.h. + Sat Aug 7 17:40:24 2010 Nobuyoshi Nakada <nobu@r...> * mkconfig.rb, lib/rbconfig/obsolete.rb: warn obsolete and -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/