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

ruby-changes:20472

From: kanemoto <ko1@a...>
Date: Mon, 11 Jul 2011 23:52:35 +0900 (JST)
Subject: [ruby-changes:20472] kanemoto:r32520 (ruby_1_9_3): time.c: can't compile time.c on AIX due to missing declaration for

kanemoto	2011-07-11 23:52:25 +0900 (Mon, 11 Jul 2011)

  New Revision: 32520

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32520

  Log:
    time.c: can't compile time.c on AIX due to missing declaration for
            ffs(). It is declared in strings.h on AIX.
            backported r32518 from trunk.

  Modified files:
    branches/ruby_1_9_3/ChangeLog
    branches/ruby_1_9_3/time.c

Index: ruby_1_9_3/time.c
===================================================================
--- ruby_1_9_3/time.c	(revision 32519)
+++ ruby_1_9_3/time.c	(revision 32520)
@@ -23,6 +23,10 @@
 #include <float.h>
 #include <math.h>
 
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
 #include "timev.h"
 
 static ID id_divmod, id_mul, id_submicro, id_nano_num, id_nano_den, id_offset;
Index: ruby_1_9_3/ChangeLog
===================================================================
--- ruby_1_9_3/ChangeLog	(revision 32519)
+++ ruby_1_9_3/ChangeLog	(revision 32520)
@@ -1,3 +1,9 @@
+Mon Jul 11 23:50:39 2011  Yutaka Kanemoto  <kanemoto@r...>
+
+	* time.c: can't compile time.c on AIX due to missing declaration for
+	  ffs(). It is declared in strings.h on AIX. backported r32518 from
+	  trunk.
+
 Mon Jul 11 23:47:00 2011  Yutaka Kanemoto  <kanemoto@r...>
 
 	* thread_pthread.c (get_stack):  need to adjust stack addr for

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

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