X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=compat%2Finclude%2Fbsdcompat.h;h=7a3b11e23edf259db31d53062f9534ea8760d032;hp=421e4cf67ee927efd409214bf11e91ec4e6b1c50;hb=8d4197bb9ba5bbcef21409231ed8903b0cac353a;hpb=ddd2ef55b78a62c4bc3daad18bef8a90e85a2052 diff --git a/compat/include/bsdcompat.h b/compat/include/bsdcompat.h index 421e4cf..7a3b11e 100644 --- a/compat/include/bsdcompat.h +++ b/compat/include/bsdcompat.h @@ -8,6 +8,7 @@ #include #include +#include #define __dead volatile @@ -107,7 +108,9 @@ struct dinode { * This is the 4.4BSD directory entry structure */ #define DIRBLKSIZ DEV_BSIZE +#ifndef MAXNAMLEN #define MAXNAMLEN 255 +#endif struct direct { __u32 d_ino; @@ -121,19 +124,6 @@ struct direct { char d_name[MAXNAMLEN + 1]; }; -/* - * File types - */ -#define DT_UNKNOWN 0 -#define DT_FIFO 1 -#define DT_CHR 2 -#define DT_DIR 4 -#define DT_BLK 6 -#define DT_REG 8 -#define DT_LNK 10 -#define DT_SOCK 12 -#define DT_WHT 14 - /* * Convert between stat structure types and directory types. */