home *** CD-ROM | disk | FTP | other *** search
- #ifndef STRUCT_MTAB_H
- #define STRUCT_MTAB_H
-
- #include "confmntent.h"
- #include "confmntult.h"
- #ifdef MNTENT
- #ifndef FILE
- #include <stdio.h>
- #endif
- #include <mntent.h>
- #else
- #ifdef MNTULT
- #include <sys/param.h>
- #include <sys/mount.h>
- #undef m_path /* dorks */
- #endif
- #include <mtab.h>
- #ifndef MNTMAXSTR
- #define MNTMAXSTR (sizeof ((struct mtab *)0)->m_path)
- /* A big problem here is that Ultrix 4.1, at least, defines m_path in two */
- /* DIFFERENT ways in sys/mount.h and mtab.h. Dorks. Fortunately, they */
- /* do define MNTMAXSTR in nfs/nfs_clnt.h, so we arrange to include that */
- /* whenever this file is used. A better solution would be to bomb DEC. */
- #endif
- #define mntent mtab
- #define mnt_dir m_path
- #define mnt_fsname m_dname
- #endif
-
- #endif
-