summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-30 23:35:05 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-30 23:35:05 +0000
commit0268c8f7475fa776937965d273c961c3355868b3 (patch)
tree2e3bbdf6a4a8b1bc4724b1f3fe7df5b6c0a9eb0d /dln.c
parent590c5926f0be4a12a12a0965c88b9579ac2bb945 (diff)
* dln.c: #define S_ISDIR if not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dln.c b/dln.c
index d2c2c78c1b..a481d806ea 100644
--- a/dln.c
+++ b/dln.c
@@ -50,6 +50,10 @@ void *xrealloc();
#include <sys/types.h>
#include <sys/stat.h>
+#ifndef S_ISDIR
+# define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR)
+#endif
+
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#else