Applied a patch from Kenneth Stailey to make it work on OpenBSD.
1998-11-20 Martin Baulig <baulig@merkur.uni-trier.de> * sysdeps/common/mountlist.c: Applied a patch from Kenneth Stailey to make it work on OpenBSD.
This commit is contained in:
committed by
Martin Baulig
parent
7a0a779311
commit
4ac6972be6
@@ -1,3 +1,8 @@
|
|||||||
|
1998-11-20 Martin Baulig <baulig@merkur.uni-trier.de>
|
||||||
|
|
||||||
|
* sysdeps/common/mountlist.c: Applied a patch from Kenneth Stailey to
|
||||||
|
make it work on OpenBSD.
|
||||||
|
|
||||||
1998-11-18 Martin Baulig <martin@home-of-linux.org>
|
1998-11-18 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
* lib/open.c (glibtop_open_l): We need to set argv[0] in call
|
* lib/open.c (glibtop_open_l): We need to set argv[0] in call
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ xatoi (cp)
|
|||||||
}
|
}
|
||||||
#endif /* MOUNTED_GETMNTENT1. */
|
#endif /* MOUNTED_GETMNTENT1. */
|
||||||
|
|
||||||
#if defined (MOUNTED_GETMNTINFO) && !defined (__NetBSD__)
|
#if defined (MOUNTED_GETMNTINFO) && !defined (__NetBSD__) && !defined (__OpenBSD__)
|
||||||
static char *
|
static char *
|
||||||
fstype_to_string (t)
|
fstype_to_string (t)
|
||||||
short t;
|
short t;
|
||||||
@@ -357,7 +357,7 @@ read_filesystem_list (need_fs_type, all_fs)
|
|||||||
me = (struct mount_entry *) xmalloc (sizeof (struct mount_entry));
|
me = (struct mount_entry *) xmalloc (sizeof (struct mount_entry));
|
||||||
me->me_devname = xstrdup (fsp->f_mntfromname);
|
me->me_devname = xstrdup (fsp->f_mntfromname);
|
||||||
me->me_mountdir = xstrdup (fsp->f_mntonname);
|
me->me_mountdir = xstrdup (fsp->f_mntonname);
|
||||||
#ifdef __NetBSD__
|
#if defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
me->me_type = xstrdup (fsp->f_fstypename);
|
me->me_type = xstrdup (fsp->f_fstypename);
|
||||||
#else
|
#else
|
||||||
me->me_type = xstrdup (fstype_to_string (fsp->f_type));
|
me->me_type = xstrdup (fstype_to_string (fsp->f_type));
|
||||||
|
|||||||
Reference in New Issue
Block a user