X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=compat%2Finclude%2Ffstab.h;h=8386e8d1ebec9fc92709ed5214adecda96847cea;hb=43460f04f3920ae39f345a2fb39d000a890a4283;hp=e29cf03bc5e313f20069b506a924d02d369fd21c;hpb=ebcbe7f6c10482913b60fc792e72e494b439b242;p=dump.git diff --git a/compat/include/fstab.h b/compat/include/fstab.h index e29cf03..8386e8d 100644 --- a/compat/include/fstab.h +++ b/compat/include/fstab.h @@ -2,9 +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 , 1999-2000 + * Stelian Pop - AlcĂ´ve , 2000 * - * $Id: fstab.h,v 1.5 2000/01/21 10:17:41 stelian Exp $ + * $Id: fstab.h,v 1.11 2001/03/19 13:22:48 stelian Exp $ */ /* @@ -43,6 +44,8 @@ #ifndef _FSTAB_H_ #define _FSTAB_H_ +#include + /* * File system table, see fstab(5). * @@ -54,8 +57,15 @@ * if type is "rq", then use concatenation of fs_file and "quotas" to locate * quota file. */ +#ifdef __linux__ +#include +#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 */ @@ -65,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 */