From 9257b9f7f5da031a63d56c74bf27aa93bdc58065 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 4 Nov 1999 04:52:56 +0000 Subject: [PATCH] (S_ISSOCK, S_ISLNK): fallback definitions for systems that don't have them (such as ultrix) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7313 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ls.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/appl/ftp/ftpd/ls.c b/appl/ftp/ftpd/ls.c index d8215e04d..e96ce3feb 100644 --- a/appl/ftp/ftpd/ls.c +++ b/appl/ftp/ftpd/ls.c @@ -66,6 +66,14 @@ struct fileinfo { #define S_ISTXT S_ISVTX #endif +#ifndef S_ISSOCK +#define S_ISSOCK(mode) (((mode) & _S_IFMT) == S_IFSOCK) +#endif + +#ifndef S_ISLNK +#define S_ISLNK(mode) (((mode) & _S_IFMT) == S_IFLNK) +#endif + static void make_fileinfo(const char *filename, struct fileinfo *file, int flags) {