diff --git a/ChangeLog b/ChangeLog index 8d9203e5a1..f12f84a26d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jul 22 14:30:17 2010 NARUSE, Yui + + * include/ruby/missing.h: add prototype for ruby_close(). + Thu Jul 22 12:58:12 2010 Nobuyoshi Nakada * configure.in (RUBY_EXTERN): ignore invalid attribute. diff --git a/include/ruby/missing.h b/include/ruby/missing.h index f4a5556ddf..1e0474cef8 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -173,6 +173,15 @@ RUBY_EXTERN int signbit(double x); RUBY_EXTERN int ffs(int); #endif +#ifndef HAVE_CLOSE +#include +#include +RUBY_EXTERN int ruby_getpeername(int, struct sockaddr *, socklen_t *); +RUBY_EXTERN int ruby_getsockname(int, struct sockaddr *, socklen_t *); +RUBY_EXTERN int ruby_shutdown(int, int); +RUBY_EXTERN int ruby_close(int); +#endif + #if defined __GNUC__ && __GNUC__ >= 4 #pragma GCC visibility pop #endif