Tried to get everything working for SCO.
CVS patchset: 1719 CVS date: 1997/06/27 21:55:49
This commit is contained in:
parent
398062305f
commit
b5be704565
|
@ -14,9 +14,10 @@
|
|||
#if HAVE_STRUCT_MNTTAB
|
||||
our_mntent * getmntent(FILE *filep) {
|
||||
static struct mnttab entry;
|
||||
static our_mntent item = { entry.mt_filsys };
|
||||
static our_mntent item;
|
||||
|
||||
if (!fread(&entry, sizeof(entry), 1, filep)) return NULL;
|
||||
item.our_mntdir = entry.mt_filsys;
|
||||
|
||||
return &item;
|
||||
}
|
||||
|
|
|
@ -67,10 +67,17 @@ extern void *myrealloc(void *, size_t);
|
|||
# define GETMNTENT_TWO 0
|
||||
# include <sys/mount.h>
|
||||
#elif HAVE_MNTENT_H || !(HAVE_GETMNTENT) || HAVE_STRUCT_MNTTAB
|
||||
# if HAVE_MNTENT_H || HAVE_STRUCT_MNTTAB
|
||||
# if HAVE_MNTENT_H
|
||||
# include <mntent.h>
|
||||
# define our_mntent struct mntent
|
||||
# define our_mntdir mnt_dir
|
||||
# elif HAVE_STRUCT_MNTTAB
|
||||
#include <stdio.h>
|
||||
#include <mnttab.h>
|
||||
struct our_mntent {
|
||||
char * our_mntdir;
|
||||
};
|
||||
struct our_mntent *getmntent(FILE *filep);
|
||||
# else
|
||||
#include <stdio.h>
|
||||
struct our_mntent {
|
||||
|
|
Loading…
Reference in New Issue