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 | 3aa249bff61808355fd6b864b94fd531fd00b3b7 (patch) | |
tree | 48f5bc180abb032c255cbad668a4838647de32f2 /contrib/cvs/diff/system.h | |
parent | dfd3c578a82a6f926669c53ec72c55f7aba93228 (diff) | |
parent | 6045cae71a438a752980a395f03717a13cc22179 (diff) | |
download | FreeBSD-src-3aa249bff61808355fd6b864b94fd531fd00b3b7.zip FreeBSD-src-3aa249bff61808355fd6b864b94fd531fd00b3b7.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r128266,
which included commits to RCS files with non-trunk default branches.
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> |