From 8515fee36f13a426e8af4557378ec4036740caae Mon Sep 17 00:00:00 2001 From: eban Date: Tue, 13 Feb 2001 14:15:55 +0000 Subject: * dir.c (lstat): should use rb_sys_stat if lstat(2) is not available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 56475c113..2c93e3301 100644 --- a/dir.c +++ b/dir.c @@ -61,6 +61,10 @@ char *strchr _((char*,char)); #include +#ifndef HAVE_LSTAT +#define lstat rb_sys_stat +#endif + #define FNM_NOESCAPE 0x01 #define FNM_PATHNAME 0x02 #define FNM_PERIOD 0x04 -- cgit