]> git.wh0rd.org - dump.git/blobdiff - compat/include/fstab.h
noos -> popies.net
[dump.git] / compat / include / fstab.h
index bb5a735924cea34123bc903a678c3d24118528eb..234edec870142ee72d61d1b3eb9cffdeb429b763 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-2000
+ *     Stelian Pop <stelian@popies.net>, 1999-2000
+ *     Stelian Pop <stelian@popies.net> - AlcĂ´ve <www.alcove.com>, 2000-2002
  *
- *     $Id: fstab.h,v 1.6 2000/11/10 09:35:07 stelian Exp $
+ *     $Id: fstab.h,v 1.12 2002/01/16 09:32:14 stelian Exp $
  */
 
 /*
@@ -43,6 +44,8 @@
 #ifndef _FSTAB_H_
 #define _FSTAB_H_
 
+#include <config.h>
+
 /*
  * File system table, see fstab(5).
  *
  */
 #ifdef __linux__
 #include <mntent.h>
+#ifdef _PATH_MNTTAB
 #define _PATH_FSTAB    _PATH_MNTTAB
-#endif
-#ifndef _PATH_FSTAB
+#else
 #define        _PATH_FSTAB     "/etc/fstab"
 #endif
+#endif /* __linux__ */
 #define        FSTAB           _PATH_FSTAB     /* deprecated */
 
 #define FSTAB_DEF      "defaults"      /* default mount option */
@@ -71,7 +75,7 @@
 #define        FSTAB_XX        "ignore"        /* ignore totally */
 
 struct fstab {
-       char    *fs_spec;               /* block special device name */
+       const char *fs_spec;            /* block special device name */
        char    *fs_file;               /* file system path prefix */
        char    *fs_vfstype;            /* File system type, ufs, nfs */
        char    *fs_mntops;             /* Mount options ala -o */