From c824d47ebc829560d022df74d355f69c601ea102 Mon Sep 17 00:00:00 2001 From: kosaki Date: Sat, 16 Mar 2013 05:07:14 +0000 Subject: * include/ruby/missing.h (__syscall): moved to... * io.c: here. because __syscall() is only used from io.c. * include/ruby/missing.h: move "#include " to .... * include/ruby/intern.h: here. because it was introduced for fixing NFDBITS issue. [ruby-core:05179]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 5 +++++ include/ruby/missing.h | 9 --------- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 56e2452974..ae265ec3c0 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -31,6 +31,11 @@ extern "C" { #else # include #endif + +#if defined(HAVE_SYS_TYPES_H) +#include +#endif + #include "ruby/st.h" #if defined __GNUC__ && __GNUC__ >= 4 diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 616e699ad5..7ae2530239 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -37,10 +37,6 @@ struct timeval { # endif #endif /* HAVE_STRUCT_TIMEVAL */ -#if defined(HAVE_SYS_TYPES_H) -# include -#endif - #if !defined(HAVE_STRUCT_TIMESPEC) # if defined(HAVE_SYS_TIME_H) # include @@ -58,11 +54,6 @@ struct timezone { }; #endif -#if defined(HAVE___SYSCALL) && (defined(__APPLE__) || defined(__OpenBSD__)) -/* Mac OS X and OpenBSD have __syscall but don't define it in headers */ -off_t __syscall(quad_t number, ...); -#endif - #ifdef RUBY_EXPORT #undef RUBY_EXTERN #endif -- cgit v1.2.3