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

* process.c: define sig_t if not exist.

at least Solaris 10 and 11 doesn't have sig_t.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2016-07-04 04:57:27 +00:00
parent 92861bb0de
commit 37c32dc6d1
3 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Jul 4 13:56:34 2016 NARUSE, Yui <naruse@ruby-lang.org>
* process.c: define sig_t if not exist.
at least Solaris 10 and 11 doesn't have sig_t.
Mon Jul 4 13:08:48 2016 NARUSE, Yui <naruse@ruby-lang.org>
* random.c (random_ulong_limited): avoid left shift count >= width of

View file

@ -2883,6 +2883,8 @@ main()
fi
fi
AC_CHECK_TYPES([sig_t],[],[],[@%:@include <signal.h>])
if test "$ac_cv_func_getpgid" = no; then
# AC_FUNC_GETPGRP fails when cross-compiling with old autoconf.
# autoconf is changed between 2.52d and 2.52f?

View file

@ -253,6 +253,9 @@ typedef unsigned long unsigned_clock_t;
#elif defined(HAVE_LONG_LONG) && SIZEOF_CLOCK_T == SIZEOF_LONG_LONG
typedef unsigned LONG_LONG unsigned_clock_t;
#endif
#ifdef HAVE_SIG_T
typedef void (*sig_t) (int);
#endif
static ID id_in, id_out, id_err, id_pid, id_uid, id_gid;
static ID id_close, id_child;