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:
parent
f69091fabc
commit
d7f9e2d7ab
4 changed files with 8 additions and 4 deletions
|
@ -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>
|
||||
|
||||
* eval.c, intern.h: failed to compile where NFDBITS is defined but
|
||||
|
|
|
@ -476,6 +476,8 @@ AC_STRUCT_ST_BLKSIZE
|
|||
AC_STRUCT_ST_BLOCKS
|
||||
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,
|
||||
[rb_cv_stack_end_address=no
|
||||
for addr in __libc_stack_end _SEND; do
|
||||
|
|
2
eval.c
2
eval.c
|
@ -9546,7 +9546,7 @@ enum thread_status {
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(NFDBITS) && defined(howmany)
|
||||
#if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
|
||||
void
|
||||
rb_fd_init(fds)
|
||||
volatile rb_fdset_t *fds;
|
||||
|
|
4
intern.h
4
intern.h
|
@ -161,14 +161,12 @@ NORETURN(void rb_load_fail(const char*));
|
|||
NORETURN(void rb_error_frozen(const char*));
|
||||
void rb_check_frozen(VALUE);
|
||||
/* eval.c */
|
||||
#if defined(NFDBITS) && defined(howmany)
|
||||
#if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
|
||||
typedef struct {
|
||||
int maxfd;
|
||||
fd_set *fdset;
|
||||
} rb_fdset_t;
|
||||
|
||||
#define HAVE_RB_FD_INIT 1
|
||||
|
||||
void rb_fd_init(volatile rb_fdset_t *);
|
||||
void rb_fd_term(rb_fdset_t *);
|
||||
void rb_fd_zero(rb_fdset_t *);
|
||||
|
|
Loading…
Reference in a new issue