More general definition for S_ISDIR (needed not only for VMS but

also for NeXT).
This commit is contained in:
Bodo Möller 1999-06-07 00:20:54 +00:00
parent 8e21c14607
commit cf2562e772

View File

@ -108,10 +108,10 @@ static DH *get_dh512(void);
/* static void s_server_init(void);*/ /* static void s_server_init(void);*/
#ifndef S_ISDIR #ifndef S_ISDIR
#if defined(VMS) && !defined(__DECC) # if defined(_S_IFMT) && defined(_S_IFDIR)
#define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR)
#else
# define S_ISDIR(a) (((a) & _S_IFMT) == _S_IFDIR) # define S_ISDIR(a) (((a) & _S_IFMT) == _S_IFDIR)
# else
# define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR)
# endif # endif
#endif #endif