diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-26 01:35:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-26 01:35:38 +0000 |
commit | 459d624366335ed3a5d3ea817ba3c19a1cb66c14 (patch) | |
tree | 8ce4d8b4da5783c9c0bb267332f6c26c0ec42410 /configure.in | |
parent | f054a1bbe1243417f53df1312e2e3ba065b26df6 (diff) |
* configure.in (rb_cv_large_fd_select): needed on mingw, even
though fd_mask is not available. [ruby-core:30401]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 4da4285bba..00911ff18f 100644 --- a/configure.in +++ b/configure.in @@ -906,6 +906,7 @@ main() rb_cv_negative_time_t=no ac_cv_func_fcntl=yes ac_cv_func_flock=yes + rb_cv_large_fd_select=yes AC_LIBOBJ([langinfo]) : ${enable_win95=maybe} ], @@ -1021,7 +1022,11 @@ AC_CHECK_TYPES([struct timezone], [], [], [@%:@ifdef HAVE_TIME_H @%:@ include <sys/time.h> @%:@endif]) -AC_CHECK_TYPE(fd_mask, [AC_DEFINE(HAVE_RB_FD_INIT, 1)]) +AC_CACHE_VAL([rb_cv_large_fd_select], + [AC_CHECK_TYPE(fd_mask, [rb_cv_large_fd_select=yes], [rb_cv_large_fd_select=no])]) +if test "$rb_cv_large_fd_select" = yes; then + AC_DEFINE(HAVE_RB_FD_INIT, 1) +fi dnl RUBY_DEFINT TYPENAME, SIZE, [SIGNED-OR-UNSIGNED], [INCLUDES = DEFAULT-INCLUDES] AC_DEFUN([RUBY_DEFINT], [dnl |