1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in, eval.c, intern.h: check fd_mask type.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-11-11 17:11:05 +00:00
parent f69091fabc
commit d7f9e2d7ab
4 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Sat Nov 12 02:10:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in, eval.c, intern.h: check fd_mask type.
Fri Nov 11 19:53:47 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> Fri Nov 11 19:53:47 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* eval.c, intern.h: failed to compile where NFDBITS is defined but * eval.c, intern.h: failed to compile where NFDBITS is defined but

View file

@ -476,6 +476,8 @@ AC_STRUCT_ST_BLKSIZE
AC_STRUCT_ST_BLOCKS AC_STRUCT_ST_BLOCKS
AC_STRUCT_ST_RDEV AC_STRUCT_ST_RDEV
AC_CHECK_TYPE(fd_mask, [AC_DEFINE(HAVE_RB_FD_INIT, 1)])
AC_CACHE_CHECK(for stack end address, rb_cv_stack_end_address, AC_CACHE_CHECK(for stack end address, rb_cv_stack_end_address,
[rb_cv_stack_end_address=no [rb_cv_stack_end_address=no
for addr in __libc_stack_end _SEND; do for addr in __libc_stack_end _SEND; do

2
eval.c
View file

@ -9546,7 +9546,7 @@ enum thread_status {
# endif # endif
#endif #endif
#if defined(NFDBITS) && defined(howmany) #if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
void void
rb_fd_init(fds) rb_fd_init(fds)
volatile rb_fdset_t *fds; volatile rb_fdset_t *fds;

View file

@ -161,14 +161,12 @@ NORETURN(void rb_load_fail(const char*));
NORETURN(void rb_error_frozen(const char*)); NORETURN(void rb_error_frozen(const char*));
void rb_check_frozen(VALUE); void rb_check_frozen(VALUE);
/* eval.c */ /* eval.c */
#if defined(NFDBITS) && defined(howmany) #if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
typedef struct { typedef struct {
int maxfd; int maxfd;
fd_set *fdset; fd_set *fdset;
} rb_fdset_t; } rb_fdset_t;
#define HAVE_RB_FD_INIT 1
void rb_fd_init(volatile rb_fdset_t *); void rb_fd_init(volatile rb_fdset_t *);
void rb_fd_term(rb_fdset_t *); void rb_fd_term(rb_fdset_t *);
void rb_fd_zero(rb_fdset_t *); void rb_fd_zero(rb_fdset_t *);