summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/ruby/missing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index 5309fe9466..bded5521d1 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -51,7 +51,7 @@ struct timezone {
};
#endif
-#if defined(HAVE___SYSCALL) && !defined(__syscall)
+#if defined(HAVE___SYSCALL) && defined(__APPLE__)
/* Mac OS X has __syscall but doen't defined in headers */
off_t __syscall(quad_t number, ...);
#endif