diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-27 08:59:51 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-27 08:59:51 +0000 |
commit | bed02ef5312ec5f5aadaddda7889c4c53662b1b6 (patch) | |
tree | 152c12bc09ddba8416464680576a7291466bced7 /include/ruby | |
parent | 88b031a321cf43b656ebfd7e27945c5afc2a20d9 (diff) |
merge revision(s) 32702:
* include/ruby/missing.h: define __syscall if the platform has
__syscall in the library but doesn't define it in headers
for example Mac OS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/missing.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 067145a156..5309fe9466 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -51,6 +51,11 @@ struct timezone { }; #endif +#if defined(HAVE___SYSCALL) && !defined(__syscall) +/* Mac OS X has __syscall but doen't defined in headers */ +off_t __syscall(quad_t number, ...); +#endif + #ifdef RUBY_EXPORT #undef RUBY_EXTERN #endif |