summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-02-03 13:56:43 +0000
committerJim Meyering <jim@meyering.net>1999-02-03 13:56:43 +0000
commitcd9a08e476c9fcf5be7919eb32a01ddf70eab8a3 (patch)
tree1781fcbf1c99e3c3d59951b257cc8f96c043c1b9 /src/system.h
parent6025f81e9469032a7e8992e50789db5a5c3818e6 (diff)
downloadcoreutils-cd9a08e476c9fcf5be7919eb32a01ddf70eab8a3.tar.xz
(S_ISDOOR): Define if missing.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 4b56c15a3..b81a595f5 100644
--- a/src/system.h
+++ b/src/system.h
@@ -23,6 +23,7 @@
# undef S_ISBLK
# undef S_ISCHR
# undef S_ISDIR
+# undef S_ISDOOR
# undef S_ISFIFO
# undef S_ISLNK
# undef S_ISMPB
@@ -63,6 +64,9 @@
#if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */
# define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
#endif
+#if !defined(S_ISDOOR) && defined(S_IFDOOR) /* Solaris 2.5 and up */
+# define S_ISDOOR(m) (((m) & S_IFMT) == S_IFDOOR)
+#endif
#ifndef S_IEXEC
# define S_IEXEC S_IXUSR