]> granicus.if.org Git - sudo/commitdiff
added _S_IFDIR and S_ISDIR
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 4 Sep 1995 19:28:15 +0000 (19:28 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 4 Sep 1995 19:28:15 +0000 (19:28 +0000)
compat.h

index 55ea4da50ac399320ba8c5092898278027efdaf6..e55e92d64ad49953f13aa6a1c2f2aeb3dc93d19a 100644 (file)
--- a/compat.h
+++ b/compat.h
 #ifndef _S_IFREG
 #  define _S_IFREG             S_IFREG
 #endif /* _S_IFREG */
+#ifndef _S_IFDIR
+#  define _S_IFDIR             S_IFDIR
+#endif /* _S_IFDIR */
 #ifndef S_ISREG
 #  define S_ISREG(m)           (((m) & _S_IFMT) == _S_IFREG)
 #endif /* S_ISREG */
+#ifndef S_ISDIR
+#  define S_ISDIR(m)           (((m) & _S_IFMT) == _S_IFDIR)
+#endif /* S_ISDIR */
 
 /*
  * Some OS's may not have this.