summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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