summaryrefslogtreecommitdiffstats
path: root/dir.c
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
commit8515fee36f13a426e8af4557378ec4036740caae (patch)
tree17a3eb28fa4a2431bd5c5b2ba583a267785ac0f8 /dir.c
parent912d931dd18f7d5bc51901b925f1b2a44254a2df (diff)
downloadruby-8515fee36f13a426e8af4557378ec4036740caae.tar.gz
ruby-8515fee36f13a426e8af4557378ec4036740caae.tar.xz
ruby-8515fee36f13a426e8af4557378ec4036740caae.zip
* 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
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 4 insertions, 0 deletions
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 <ctype.h>
+#ifndef HAVE_LSTAT
+#define lstat rb_sys_stat
+#endif
+
#define FNM_NOESCAPE 0x01
#define FNM_PATHNAME 0x02
#define FNM_PERIOD 0x04