[前][次][番号順一覧][スレッド一覧]

ruby-changes:27722

From: kosaki <ko1@a...>
Date: Sat, 16 Mar 2013 14:07:28 +0900 (JST)
Subject: [ruby-changes:27722] kosaki:r39774 (trunk): * include/ruby/missing.h (__syscall): moved to...

kosaki	2013-03-16 14:07:14 +0900 (Sat, 16 Mar 2013)

  New Revision: 39774

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39774

  Log:
    * include/ruby/missing.h (__syscall): moved to...
    * io.c: here. because __syscall() is only used from io.c.
    
    * include/ruby/missing.h: move "#include <sys/type.h>" to ....
    * include/ruby/intern.h: here. because it was introduced for
      fixing NFDBITS issue. [ruby-core:05179].

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/intern.h
    trunk/include/ruby/missing.h
    trunk/io.c

Index: include/ruby/intern.h
===================================================================
--- include/ruby/intern.h	(revision 39773)
+++ include/ruby/intern.h	(revision 39774)
@@ -31,6 +31,11 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L31
 #else
 # include <varargs.h>
 #endif
+
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif
+
 #include "ruby/st.h"
 
 #if defined __GNUC__ && __GNUC__ >= 4
Index: include/ruby/missing.h
===================================================================
--- include/ruby/missing.h	(revision 39773)
+++ include/ruby/missing.h	(revision 39774)
@@ -37,10 +37,6 @@ struct timeval { https://github.com/ruby/ruby/blob/trunk/include/ruby/missing.h#L37
 # endif
 #endif /* HAVE_STRUCT_TIMEVAL */
 
-#if defined(HAVE_SYS_TYPES_H)
-#  include <sys/types.h>
-#endif
-
 #if !defined(HAVE_STRUCT_TIMESPEC)
 # if defined(HAVE_SYS_TIME_H)
 #  include <sys/time.h>
@@ -58,11 +54,6 @@ struct timezone { https://github.com/ruby/ruby/blob/trunk/include/ruby/missing.h#L54
 };
 #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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39773)
+++ ChangeLog	(revision 39774)
@@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Mar 13 15:16:35 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* include/ruby/missing.h (__syscall): moved to...
+	* io.c: here. because __syscall() is only used from io.c.
+
+	* include/ruby/missing.h: move "#include <sys/type.h>" to ....
+	* include/ruby/intern.h: here. because it was introduced for
+	  fixing NFDBITS issue. [ruby-core:05179].
+
 Wed Mar 13 14:38:53 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* include/ruby/missing.h (struct timespec): include <sys/time.h>
Index: io.c
===================================================================
--- io.c	(revision 39773)
+++ io.c	(revision 39774)
@@ -110,6 +110,11 @@ https://github.com/ruby/ruby/blob/trunk/io.c#L110
 # endif
 #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
+
 #define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
 
 #define IO_RBUF_CAPA_MIN  8192

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]