summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-05-22 08:35:31 +0000
committerJim Meyering <jim@meyering.net>2002-05-22 08:35:31 +0000
commit925390f0bfda4da412f77c3f4fcd9b68124580a2 (patch)
tree22caa3be68dde69a71b8727ed63e1e81914b3717 /src
parent92255513cd065c61008b2f809d4b4fa49afe17ed (diff)
downloadcoreutils-925390f0bfda4da412f77c3f4fcd9b68124580a2.tar.xz
(S_ISREG, S_ISDIR): Define if not already defined.
(S_TYPEISSEM, S_TYPEISSHM, S_TYPEISTMO): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/sys2.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h
index 8493be78d..2ccdcf27f 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -54,6 +54,14 @@
/* If any of the following S_* macros are undefined, define them here
so each use doesn't have to be guarded with e.g., #ifdef S_ISLNK. */
+#ifndef S_ISREG
+# define S_ISREG(Mode) 0
+#endif
+
+#ifndef S_ISDIR
+# define S_ISDIR(Mode) 0
+#endif
+
#ifndef S_ISLNK
# define S_ISLNK(Mode) 0
#endif
@@ -78,6 +86,19 @@
# define S_ISDOOR(Mode) 0
#endif
+#ifndef S_TYPEISSEM
+# define S_TYPEISSEM(Stat_buf_p) 0
+#endif
+
+#ifndef S_TYPEISSHM
+# define S_TYPEISSHM(Stat_buf_p) 0
+#endif
+
+#ifndef S_TYPEISTMO
+# define S_TYPEISTMO(Stat_buf_p) 0
+#endif
+
+
/* If any of the following are undefined,
define them to their de facto standard values. */
#if !S_ISUID