summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-13 14:15:55 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-13 14:15:55 +0000
commit22765f20155d13b6b255ad4ad7e32be1a1a052fb (patch)
tree17a3eb28fa4a2431bd5c5b2ba583a267785ac0f8
parentfa3eb5373e680271e4946ff8e077f8266b3746ef (diff)
* dir.c (lstat): should use rb_sys_stat if lstat(2) is not
available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog19
-rw-r--r--dir.c4
2 files changed, 16 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index c51b80b..b0f28ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,7 @@
-Sun Feb 11 16:00:30 2001 WATANABE Hirofumi <eban@ruby-lang.org>
+Tue Feb 13 23:05:38 2001 WATANABE Hirofumi <eban@ruby-lang.org>
- * eval.c (stack_length): use __builtin_frame_address() only if
- GCC and i386 CPU.
-
- * gc.c (rb_gc, Init_stack): ditto.
-
- * configure.in: add ac_cv_func_getpgrp_void=yes on DJGPP.
+ * dir.c (lstat): should use rb_sys_stat if lstat(2) is not
+ available.
Tue Feb 13 08:43:10 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
@@ -29,6 +25,15 @@ Tue Feb 13 01:13:43 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (primary): preserve and clear in_single and in_def using
stack to prevent nested method errors in singleton class bodies.
+Sun Feb 11 16:00:30 2001 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * eval.c (stack_length): use __builtin_frame_address() only if
+ GCC and i386 CPU.
+
+ * gc.c (rb_gc, Init_stack): ditto.
+
+ * configure.in: add ac_cv_func_getpgrp_void=yes on DJGPP.
+
Sat Feb 10 23:43:49 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* hash.c (rb_any_hash): dumped core on machines sizeof(int) != sizeof(long).
diff --git a/dir.c b/dir.c
index 56475c1..2c93e33 100644
--- a/dir.c
+++ b/dir.c
@@ -61,6 +61,10 @@ char *strchr _((char*,char));
#include <ctype.h>
+#ifndef HAVE_LSTAT
+#define lstat rb_sys_stat
+#endif
+
#define FNM_NOESCAPE 0x01
#define FNM_PATHNAME 0x02
#define FNM_PERIOD 0x04