Skip to content

Commit

Permalink
* io.c (NOFILE): define NOFILE as 64 if not defined.
Browse files Browse the repository at this point in the history
* signal.c (sighandler_t): rename to sh_t on dietlibc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eban committed Aug 16, 2002
1 parent c27d662 commit 4f60a53
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion io.c
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions signal.c
Expand Up @@ -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
Expand Down

0 comments on commit 4f60a53

Please sign in to comment.