summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkanemoto <kanemoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-11 14:52:25 +0000
committerkanemoto <kanemoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-11 14:52:25 +0000
commit63046f3140b9af31ccf34288aaf754415ec9c93f (patch)
treee057c6dc02bbf84646cb299218c231dd29818026
parent25af5ee57f642f758ea98dd8a7684f0b76c48bc7 (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--time.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fddec25798..3ce29abdd7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Jul 11 23:50:39 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org>
+
+ * 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@ruby-lang.org>
* thread_pthread.c (get_stack): need to adjust stack addr for
diff --git a/time.c b/time.c
index 5dbf9b22ca..95bdb1f504 100644
--- a/time.c
+++ b/time.c
@@ -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;