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

ruby-changes:27920

From: akr <ko1@a...>
Date: Thu, 28 Mar 2013 06:56:42 +0900 (JST)
Subject: [ruby-changes:27920] akr:r39972 (trunk): * include/ruby/defines.h: Fix a compilation error on NetBSD,

akr	2013-03-28 06:56:20 +0900 (Thu, 28 Mar 2013)

  New Revision: 39972

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

  Log:
    * include/ruby/defines.h: Fix a compilation error on NetBSD,
      "type of formal parameter 1 is incomplete" for the rb_thread_wait_for
      invocation in rb_file_flock, by including header files as
      AC_INCLUDES_DEFAULT of autoconf.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/defines.h

Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h	(revision 39971)
+++ include/ruby/defines.h	(revision 39972)
@@ -22,6 +22,41 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/defines.h#L22
 #include RUBY_EXTCONF_H
 #endif
 
+/* AC_INCLUDES_DEFAULT */
+#include <stdio.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+#  include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+#  include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
 #define RUBY
 
 # include <stddef.h>
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39971)
+++ ChangeLog	(revision 39972)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Mar 28 06:51:31 2013  Tanaka Akira  <akr@f...>
+
+	* include/ruby/defines.h: Fix a compilation error on NetBSD,
+	  "type of formal parameter 1 is incomplete" for the rb_thread_wait_for
+	  invocation in rb_file_flock, by including header files as
+	  AC_INCLUDES_DEFAULT of autoconf.
+
 Wed Mar 27 22:09:14 2013  Tanaka Akira  <akr@f...>
 
 	* numeric.c (LONG_MIN_MINUS_ONE_IS_LESS_THAN): New macro.

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

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