mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/subst.h: new file for substitute standard functions..
* include/ruby/missing.h: don't substitute "close", etc. here. * include/ruby/ruby.h: include ruby/subst.h at last. This prevents substituting "close" in unitstd.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
06efb04e8e
commit
bb0ef922db
4 changed files with 28 additions and 8 deletions
15
include/ruby/subst.h
Normal file
15
include/ruby/subst.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef RUBY_SUBST_H
|
||||
#define RUBY_SUBST_H 1
|
||||
|
||||
#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
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue