]> git.wh0rd.org - dump.git/commitdiff
Added the DT_* constants again, old libc sucks
authorStelian Pop <stelian@popies.net>
Fri, 22 Oct 1999 18:12:25 +0000 (18:12 +0000)
committerStelian Pop <stelian@popies.net>
Fri, 22 Oct 1999 18:12:25 +0000 (18:12 +0000)
CHANGES
THANKS
compat/include/bsdcompat.h

diff --git a/CHANGES b/CHANGES
index 32248b4937386faeb72e0682d41e77621ef42bfb..d098293dd93110702489f879c8156df787541b0d 100644 (file)
--- 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 ???????????????)
 ===================================================================
 
 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).
 
        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 <virnet@nat.fr>
+       for submitting the bug report.
+
 Changes between versions 0.4b6 and 0.4b7 (released October 8, 1999)
 ===================================================================
 
 Changes between versions 0.4b6 and 0.4b7 (released October 8, 1999)
 ===================================================================
 
diff --git a/THANKS b/THANKS
index e22e2776def2adbf092d77b0cb0f2d70be10262c..26e643593f59609cfbf08c7fcc3c17827d6e12eb 100644 (file)
--- 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.
 
 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
 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
 David Miller           davem@caip.rutgers.edu
 David Monro            davidm@cs.su.oz.au
 Lukas Nellen           L.Nellen@ThPhys.Uni-Heidelberg.DE
index ede26408f2429c4f7471df6413fe8d58e9906f78..8c367748384dac4078d2ed32816ae8225c07676a 100644 (file)
@@ -4,7 +4,7 @@
  *     Remy Card <card@Linux.EU.Org>, 1994-1997
  *     Stelian Pop <pop@cybercable.fr>, 1999
  *
  *     Remy Card <card@Linux.EU.Org>, 1994-1997
  *     Stelian Pop <pop@cybercable.fr>, 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 <config.h>
  */
 
 #include <config.h>
@@ -113,6 +113,20 @@ struct dinode {
 #define MAXNAMLEN      255
 #endif
 
 #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;
 struct direct {
        __u32   d_ino;
        __u16   d_reclen;