diff options
author | peter <peter@FreeBSD.org> | 2004-04-15 01:01:56 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-04-15 01:01:56 +0000 |
commit | 6045cae71a438a752980a395f03717a13cc22179 (patch) | |
tree | fd220ac1ddaebaa4a730f86d6f727fb639279056 /contrib/cvs/diff/system.h | |
parent | 0de1aa939e0bb1831fe5ba20e2afa2fe6d7426ab (diff) | |
download | FreeBSD-src-6045cae71a438a752980a395f03717a13cc22179.zip FreeBSD-src-6045cae71a438a752980a395f03717a13cc22179.tar.gz |
Import cvs-1.11.15
Diffstat (limited to 'contrib/cvs/diff/system.h')
-rw-r--r-- | contrib/cvs/diff/system.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/contrib/cvs/diff/system.h b/contrib/cvs/diff/system.h index 0f9cda7..d383ea1 100644 --- a/contrib/cvs/diff/system.h +++ b/contrib/cvs/diff/system.h @@ -61,9 +61,19 @@ GNU General Public License for more details. #if !defined(S_ISFIFO) && defined(S_IFFIFO) #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFFIFO) #endif -#if !defined(S_ISSOCK) && defined(S_IFSOCK) -#define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK) -#endif + +#ifndef S_ISSOCK +# if defined( S_IFSOCK ) +# ifdef S_IFMT +# define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK) +# else +# define S_ISSOCK(mode) ((mode) & S_IFSOCK) +# endif /* S_IFMT */ +# elif defined( S_ISNAM ) + /* SCO OpenServer 5.0.6a */ +# define S_ISSOCK S_ISNAM +# endif /* !S_IFSOCK && S_ISNAM */ +#endif /* !S_ISSOCK */ #if HAVE_UNISTD_H #include <unistd.h> |