summaryrefslogtreecommitdiff
path: root/bsdfsck/fsck.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsdfsck/fsck.h')
-rw-r--r--bsdfsck/fsck.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bsdfsck/fsck.h b/bsdfsck/fsck.h
index ea6da35a..4b95785b 100644
--- a/bsdfsck/fsck.h
+++ b/bsdfsck/fsck.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)fsck.h 8.1 (Berkeley) 6/5/93
- * $Id: fsck.h,v 1.8 1994/09/16 14:56:55 mib Exp $
+ * $Id: fsck.h,v 1.9 1994/10/05 17:08:23 mib Exp $
*/
/* Begin GNU Hurd */
@@ -107,6 +107,10 @@ struct odirtemplate {
? (fs)->fs_bsize \
: (fragroundup(fs, blkoff(fs, (dip)->di_size))))
+/* Don't include dirent.h lest we get confused, but we still want this. */
+#define IFTODT(mode) (((mode) & 0170000) >> 12)
+#define DT_DIR IFTODT (S_IFDIR)
+
/* missing macros */
/* Convert bytes to disk blocks */