aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-04 04:57:27 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-04 04:57:27 +0000
commit2b6462f4d9886666ca735af6ead3c17a45ef55ba (patch)
tree245e307b738f31f33c4dd70928379ee213b18d63 /process.c
parente38b2b49b82d754add13df38202572a0ef8a6ff5 (diff)
downloadruby-2b6462f4d9886666ca735af6ead3c17a45ef55ba.tar.gz
* 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
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/process.c b/process.c
index 2938b9f578..905ec0e755 100644
--- a/process.c
+++ b/process.c
@@ -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;