summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/diff/system.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2004-04-15 01:01:56 +0000
committerpeter <peter@FreeBSD.org>2004-04-15 01:01:56 +0000
commit6045cae71a438a752980a395f03717a13cc22179 (patch)
treefd220ac1ddaebaa4a730f86d6f727fb639279056 /contrib/cvs/diff/system.h
parent0de1aa939e0bb1831fe5ba20e2afa2fe6d7426ab (diff)
downloadFreeBSD-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.h16
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>
OpenPOWER on IntegriCloud