diff options
Diffstat (limited to 'blaze822_priv.h')
-rw-r--r-- | blaze822_priv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/blaze822_priv.h b/blaze822_priv.h index f1fe880..a84c963 100644 --- a/blaze822_priv.h +++ b/blaze822_priv.h @@ -16,4 +16,13 @@ struct message { #define lc(c) ((c) | 0x20) #define uc(c) ((c) & 0xdf) +// dirent type that can be a mail/dir (following symlinks) +#if defined(DT_REG) && defined(DT_LNK) && defined(DT_UNKNOWN) +#define MAIL_DT(t) (t == DT_REG || t == DT_LNK || t == DT_UNKNOWN) +#define DIR_DT(t) (t == DT_DIR || t == DT_UNKNOWN) +#else +#define MAIL_DT(t) (1) +#define DIR_DT(t) (1) +#endif + void *mymemmem(const void *h0, size_t k, const void *n0, size_t l); |