From 25db9bed4201b6b5c65774454ae207d83a8b5b19 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 14 Dec 1996 21:16:21 +0000 Subject: [PATCH] Default for S_ISLNK git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1103 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/common/glob.c | 6 +++++- lib/roken/glob.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/appl/ftp/common/glob.c b/appl/ftp/common/glob.c index 76317c725..05aee60c7 100644 --- a/appl/ftp/common/glob.c +++ b/appl/ftp/common/glob.c @@ -505,8 +505,12 @@ glob1(Char *pattern, glob_t *pglob) * meta characters. */ -#if !defined(S_ISLNK) && defined(S_IFLNK) && defined(S_IFMT) +#ifndef S_ISLNK +#if defined(S_IFLNK) && defined(S_IFMT) #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) +#else +#define S_ISLNK(mode) 0 +#endif #endif static int diff --git a/lib/roken/glob.c b/lib/roken/glob.c index 76317c725..05aee60c7 100644 --- a/lib/roken/glob.c +++ b/lib/roken/glob.c @@ -505,8 +505,12 @@ glob1(Char *pattern, glob_t *pglob) * meta characters. */ -#if !defined(S_ISLNK) && defined(S_IFLNK) && defined(S_IFMT) +#ifndef S_ISLNK +#if defined(S_IFLNK) && defined(S_IFMT) #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) +#else +#define S_ISLNK(mode) 0 +#endif #endif static int