From 6537dc309962c7fefcb8d698bbebe4e4f78d0096 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 27 Mar 2013 21:56:20 +0000 Subject: * 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ include/ruby/defines.h | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3ece736b35..4407884794 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu Mar 28 06:51:31 2013 Tanaka Akira + + * 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 * numeric.c (LONG_MIN_MINUS_ONE_IS_LESS_THAN): New macro. diff --git a/include/ruby/defines.h b/include/ruby/defines.h index de0883d2c9..131b2222fc 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -22,6 +22,41 @@ extern "C" { #include RUBY_EXTCONF_H #endif +/* AC_INCLUDES_DEFAULT */ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif + #define RUBY # include -- cgit v1.2.3