X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=compat%2Finclude%2Ffstab.h;h=234edec870142ee72d61d1b3eb9cffdeb429b763;hp=2ca06ece86acc551130103f91a3ba1dff48a3b5c;hb=11856e771fadee7ddb9b5a613c91f562bf363da7;hpb=ec387a1267f4cac7625cd5b6d1c1f080d39085b3 diff --git a/compat/include/fstab.h b/compat/include/fstab.h index 2ca06ec..234edec 100644 --- a/compat/include/fstab.h +++ b/compat/include/fstab.h @@ -2,8 +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 + * Stelian Pop , 1999-2000 + * Stelian Pop - AlcĂ´ve , 2000-2002 * + * $Id: fstab.h,v 1.12 2002/01/16 09:32:14 stelian Exp $ */ /* @@ -37,13 +39,13 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $Id: fstab.h,v 1.3 1999/10/11 13:31:09 stelian Exp $ */ #ifndef _FSTAB_H_ #define _FSTAB_H_ +#include + /* * File system table, see fstab(5). * @@ -55,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 */ @@ -66,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 */