From 4b87042b2ba238b3a1ab7dd97faedac9be2ce7ed Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Thu, 22 Aug 2002 08:31:03 +0000 Subject: [PATCH] uxp/v lacks _S_IFMT, but has S_IFMT git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11193 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appl/ftp/ftpd/ls.c b/appl/ftp/ftpd/ls.c index 03aa5e5fb..a0f12ce8b 100644 --- a/appl/ftp/ftpd/ls.c +++ b/appl/ftp/ftpd/ls.c @@ -124,6 +124,10 @@ free_fileinfo(struct fileinfo *f) #define S_ISTXT S_ISVTX #endif +#if !defined(_S_IFMT) && defined(S_IFMT) +#define _S_IFMT S_IFMT +#endif + #ifndef S_ISSOCK #define S_ISSOCK(mode) (((mode) & _S_IFMT) == S_IFSOCK) #endif