From fa58b58da39e4a6c96e34734539d3169dbdf4210 Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Fri, 22 Oct 1999 18:12:25 +0000 Subject: [PATCH] Added the DT_* constants again, old libc sucks --- CHANGES | 6 +++++- THANKS | 3 ++- compat/include/bsdcompat.h | 16 +++++++++++++++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 32248b4..d098293 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.7 1999/10/18 09:47:58 tiniou Exp $ +$Id: CHANGES,v 1.8 1999/10/22 18:12:25 tiniou Exp $ Changes between versions 0.4b7 and 0.4b8 (released ???????????????) =================================================================== @@ -13,6 +13,10 @@ Changes between versions 0.4b7 and 0.4b8 (released ???????????????) a va_start/va_end problem on linux-ppc (always call va_start va_end in pairs each time we use a vararg function). +4. Added again the DT_* constants because old libc does not + contain them :(. Thanks to Eric Maisonobe + for submitting the bug report. + Changes between versions 0.4b6 and 0.4b7 (released October 8, 1999) =================================================================== diff --git a/THANKS b/THANKS index e22e277..26e6435 100644 --- a/THANKS +++ b/THANKS @@ -1,4 +1,4 @@ -$Id: THANKS,v 1.6 1999/10/18 09:47:58 tiniou Exp $ +$Id: THANKS,v 1.7 1999/10/22 18:12:26 tiniou Exp $ Dump and restore were written by the people of the CSRG at the University of California, Berkeley. @@ -28,6 +28,7 @@ Henry Katz hkatz@hkatz.dialup.access.net Klaus Kudielka kkudielk@cacofonix.nt.tuwien.ac.at Florian La Roche florian@jurix.jura.uni-sb.de Greg Lutz greglutz@ix.netcom.com +Eric Maisonobe virnet@nat.fr David Miller davem@caip.rutgers.edu David Monro davidm@cs.su.oz.au Lukas Nellen L.Nellen@ThPhys.Uni-Heidelberg.DE diff --git a/compat/include/bsdcompat.h b/compat/include/bsdcompat.h index ede2640..8c36774 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.7 1999/10/22 18:12:32 tiniou Exp $ */ #include @@ -113,6 +113,20 @@ 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 + struct direct { __u32 d_ino; __u16 d_reclen; -- 2.39.5