[前][次][番号順一覧][スレッド一覧]

ruby-changes:43498

From: naruse <ko1@a...>
Date: Mon, 4 Jul 2016 13:57:32 +0900 (JST)
Subject: [ruby-changes:43498] naruse:r55571 (trunk): * process.c: define sig_t if not exist.

naruse	2016-07-04 13:57:27 +0900 (Mon, 04 Jul 2016)

  New Revision: 55571

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55571

  Log:
    * process.c: define sig_t if not exist.
      at least Solaris 10 and 11 doesn't have sig_t.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/process.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55570)
+++ ChangeLog	(revision 55571)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Jul  4 13:56:34 2016  NARUSE, Yui  <naruse@r...>
+
+	* 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@r...>
 
 	* random.c (random_ulong_limited): avoid left shift count >= width of
Index: configure.in
===================================================================
--- configure.in	(revision 55570)
+++ configure.in	(revision 55571)
@@ -2883,6 +2883,8 @@ main() https://github.com/ruby/ruby/blob/trunk/configure.in#L2883
   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?
Index: process.c
===================================================================
--- process.c	(revision 55570)
+++ process.c	(revision 55571)
@@ -253,6 +253,9 @@ typedef unsigned long unsigned_clock_t; https://github.com/ruby/ruby/blob/trunk/process.c#L253
 #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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]