summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-21 01:07:00 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-21 01:07:00 +0000
commit4e7b566f02ebf8a99e9af1d27c7c27e1886f78fa (patch)
treead58e9e7f5a6c6c6562f57775086d51a605a95a6
parent0559e89c292013f81817742966fa55b6f96443da (diff)
downloadruby-4e7b566f02ebf8a99e9af1d27c7c27e1886f78fa.tar.gz
ruby-4e7b566f02ebf8a99e9af1d27c7c27e1886f78fa.tar.xz
ruby-4e7b566f02ebf8a99e9af1d27c7c27e1886f78fa.zip
* time.c: should include <errno.h> to refer errno.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--time.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e19a543bc..28b386a95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Apr 21 10:06:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c: should include <errno.h> to refer errno.
+
Mon Apr 21 09:58:04 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* time.c (rb_strftime): check errno to detect strftime(3)'s error.
diff --git a/time.c b/time.c
index ba4c69ef0..a84c6f3d9 100644
--- a/time.c
+++ b/time.c
@@ -12,6 +12,7 @@
#include "ruby/ruby.h"
#include <sys/types.h>
#include <time.h>
+#include <errno.h>
#include "ruby/encoding.h"
#ifdef HAVE_UNISTD_H