diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-30 23:35:05 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-30 23:35:05 +0000 |
commit | 0268c8f7475fa776937965d273c961c3355868b3 (patch) | |
tree | 2e3bbdf6a4a8b1bc4724b1f3fe7df5b6c0a9eb0d /dln.c | |
parent | 590c5926f0be4a12a12a0965c88b9579ac2bb945 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |