From: Bodo Möller Date: Mon, 7 Jun 1999 00:20:54 +0000 (+0000) Subject: More general definition for S_ISDIR (needed not only for VMS but X-Git-Tag: OpenSSL_0_9_4~236 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cf2562e772b0c28a3ea547f61f46d57eb6717a69;p=oweals%2Fopenssl.git More general definition for S_ISDIR (needed not only for VMS but also for NeXT). --- diff --git a/apps/s_server.c b/apps/s_server.c index e1588c5ee0..bcb9779d50 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -108,11 +108,11 @@ static DH *get_dh512(void); /* static void s_server_init(void);*/ #ifndef S_ISDIR -#if defined(VMS) && !defined(__DECC) -#define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) -#else -#define S_ISDIR(a) (((a) & _S_IFMT) == _S_IFDIR) -#endif +# 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) +# endif #endif #ifndef NO_DH