From 9f2b8eafdd89d351ff86b461ba0e8f1061ae210c Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 27 Jul 2011 08:58:38 +0000 Subject: * 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/trunk@32702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/missing.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 -- cgit v1.2.3