diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-22 15:54:09 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-22 15:54:09 +0000 |
commit | 13361ec52137415c73a93f535a9c71402b2244df (patch) | |
tree | 22ba081d716584b1e6a0a8f2b80e5a4b6fa94cb3 /include | |
parent | a4f2d6fec47f5aecb67151ea53e5498289169448 (diff) |
merges r28714 from trunk into ruby_1_9_2.
--
* include/ruby/missing.h: add prototype for ruby_close().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/missing.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index e3333c77dd..b16ce070c2 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -165,6 +165,19 @@ RUBY_EXTERN size_t strlcat(char *, const char*, size_t); RUBY_EXTERN int signbit(double x); #endif +#ifndef HAVE_FFS +RUBY_EXTERN int ffs(int); +#endif + +#ifndef HAVE_CLOSE +#include <sys/types.h> +#include <sys/socket.h> +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(__cplusplus) #if 0 { /* satisfy cc-mode */ |