summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--include/ruby/missing.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 31661c9beb6..ab53b27196a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Jul 27 17:55:54 2011 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * 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.
+
Wed Jul 27 15:39:14 2011 Eric Hodel <drbrain@segment7.net>
* object.c: Add usage documentation for BasicObject. Based on patch
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index 067145a156d..5309fe94661 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