diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | io.c | 4 | ||||
-rw-r--r-- | signal.c | 4 |
3 files changed, 13 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Fri Aug 16 15:58:16 2002 WATANABE Hirofumi <eban@ruby-lang.org> + + * io.c (NOFILE): define NOFILE as 64 if not defined. + + * signal.c (sighandler_t): rename to sh_t on dietlibc. + Fri Aug 16 15:37:04 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net> * bignum.c (rb_cstr_to_inum): new decimal and octal string. @@ -76,7 +76,9 @@ struct timeval { /* EMX has sys/param.h, but.. */ #if defined(HAVE_SYS_PARAM_H) && !(defined(__EMX__) || defined(__HIUX_MPP__)) # include <sys/param.h> -#else +#endif + +#if !defined NOFILE # define NOFILE 64 #endif @@ -288,6 +288,10 @@ rb_gc_mark_trap_list() #endif /* MACOS_UNUSE_SIGNAL */ } +#ifdef __dietlibc__ +#define sighandler_t sh_t +#endif + typedef RETSIGTYPE (*sighandler_t)_((int)); #ifdef POSIX_SIGNAL |