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

ruby-changes:20470

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

kanemoto	2011-07-11 23:29:45 +0900 (Mon, 11 Jul 2011)

  New Revision: 32518

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

  Log:
    time.c: can't compile time.c on AIX due to missing declaration for
            ffs(). It is declared in strings.h on AIX.
            
            If I need to add something like '&& defined(_AIX)',
            please let me know.

  Modified files:
    trunk/ChangeLog
    trunk/time.c

Index: time.c
===================================================================
--- time.c	(revision 32517)
+++ time.c	(revision 32518)
@@ -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: ChangeLog
===================================================================
--- ChangeLog	(revision 32517)
+++ ChangeLog	(revision 32518)
@@ -1,3 +1,8 @@
+Mon Jul 11 23:22:28 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.
+
 Mon Jul 11 15:54:24 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* process.c: removed signal() macro. It's no longer used.

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

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