aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhilippe De Muyter <phdm@macqel.be>2000-05-05 18:27:45 +0200
committerJeff Law <law@gcc.gnu.org>2000-05-05 10:27:45 -0600
commitbe3dad6f751f1dfa18c0a58395646179bec42dd0 (patch)
treeffbf97e886efcd7c39a2dcc90dbf6a9fece9bde7 /gcc
parenteda3fbbe7ac4a70dc5ec0bcde632dd584881804d (diff)
downloadgcc-be3dad6f751f1dfa18c0a58395646179bec42dd0.zip
gcc-be3dad6f751f1dfa18c0a58395646179bec42dd0.tar.gz
gcc-be3dad6f751f1dfa18c0a58395646179bec42dd0.tar.bz2
* system.h (S_ISBLK): Provide fallback definition.
From-SVN: r33710
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/system.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9c50cb3..cdea530 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Fri May 5 10:27:06 2000 Philippe De Muyter <phdm@macqel.be>
+
+ * system.h (S_ISBLK): Provide fallback definition.
+
2000-05-05 Geoff Berry <geoffb@bops.com>
* extend.texi (Extended Asm): Document inability to give asm
diff --git a/gcc/system.h b/gcc/system.h
index 0e2b6aa..89d389c 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -478,6 +478,11 @@ extern void abort PARAMS ((void));
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
#endif
+/* Test if something is a block special file. */
+#ifndef S_ISBLK
+#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
+#endif
+
/* Test if something is a socket. */
#ifndef S_ISSOCK
# ifdef S_IFSOCK