]> git.wh0rd.org - dump.git/blobdiff - compat/include/fstab.h
cybercable -> noos.
[dump.git] / compat / include / fstab.h
index 7cad9312960717157a46035960ee16107ac3ae57..4c05266088790b31dc68af8956cd688e02c96be9 100644 (file)
@@ -2,9 +2,10 @@
  *     Ported to Linux's Second Extended File System as part of the
  *     dump and restore backup suit
  *     Remy Card <card@Linux.EU.Org>, 1994-1997
- *     Stelian Pop <pop@cybercable.fr>, 1999 
+ *     Stelian Pop <pop@noos.fr>, 1999-2000
+ *     Stelian Pop <pop@noos.fr> - AlcĂ´ve <www.alcove.fr>, 2000
  *
- *     $Id: fstab.h,v 1.4 1999/10/13 09:57:18 stelian Exp $
+ *     $Id: fstab.h,v 1.9 2000/12/04 15:43:16 stelian Exp $
  */
 
 /*
  * if type is "rq", then use concatenation of fs_file and "quotas" to locate
  * quota file.
  */
+#ifdef __linux__
+#include <mntent.h>
+#ifdef _PATH_MNTTAB
+#define _PATH_FSTAB    _PATH_MNTTAB
+#else
 #define        _PATH_FSTAB     "/etc/fstab"
-#define        FSTAB           "/etc/fstab"    /* deprecated */
+#endif
+#endif /* __linux__ */
+#define        FSTAB           _PATH_FSTAB     /* deprecated */
 
 #define FSTAB_DEF      "defaults"      /* default mount option */
 #define        FSTAB_RW        "rw"            /* read/write device */