X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=compat%2Finclude%2Fbsdcompat.h;h=223db8e1bf4b4f7a830485908deeda944e5dcbf6;hb=2e6828953e9c505e76a17eec441fc714c6579922;hp=ede26408f2429c4f7471df6413fe8d58e9906f78;hpb=df9ae507502f413c72119dde6ea3d35c91dba5bf;p=dump.git diff --git a/compat/include/bsdcompat.h b/compat/include/bsdcompat.h index ede2640..223db8e 100644 --- a/compat/include/bsdcompat.h +++ b/compat/include/bsdcompat.h @@ -4,7 +4,7 @@ * Remy Card , 1994-1997 * Stelian Pop , 1999 * - * $Id: bsdcompat.h,v 1.6 1999/10/13 09:57:18 stelian Exp $ + * $Id: bsdcompat.h,v 1.8 1999/11/07 18:53:50 tiniou Exp $ */ #include @@ -113,6 +113,24 @@ struct dinode { #define MAXNAMLEN 255 #endif +/* + * For old libc. + */ +#ifndef DT_UNKNOWN +#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 +#endif + +#ifndef d_fileno +#define d_fileno d_ino +#endif + struct direct { __u32 d_ino; __u16 d_reclen;