From cf2562e772b0c28a3ea547f61f46d57eb6717a69 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Mon, 7 Jun 1999 00:20:54 +0000 Subject: [PATCH] More general definition for S_ISDIR (needed not only for VMS but also for NeXT). --- apps/s_server.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.25.1