X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=compat%2Finclude%2Ffstab.h;h=234edec870142ee72d61d1b3eb9cffdeb429b763;hp=350fbc2d74607592be697c265d8a5d27c16d7921;hb=11856e771fadee7ddb9b5a613c91f562bf363da7;hpb=0a99352128efc4af44160eee69e8990686bf9ad5 diff --git a/compat/include/fstab.h b/compat/include/fstab.h index 350fbc2..234edec 100644 --- a/compat/include/fstab.h +++ b/compat/include/fstab.h @@ -2,10 +2,10 @@ * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit * Remy Card , 1994-1997 - * Stelian Pop , 1999-2000 - * Stelian Pop - Alcôve , 2000 + * Stelian Pop , 1999-2000 + * Stelian Pop - Alcôve , 2000-2002 * - * $Id: fstab.h,v 1.7 2000/11/10 14:42:24 stelian Exp $ + * $Id: fstab.h,v 1.12 2002/01/16 09:32:14 stelian Exp $ */ /* @@ -44,6 +44,8 @@ #ifndef _FSTAB_H_ #define _FSTAB_H_ +#include + /* * File system table, see fstab(5). * @@ -57,11 +59,12 @@ */ #ifdef __linux__ #include +#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 */ @@ -72,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 */