From 4ac6972be68753adcaad9668df1a61afba3fff81 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Fri, 20 Nov 1998 14:35:29 +0000 Subject: [PATCH] Applied a patch from Kenneth Stailey to make it work on OpenBSD. 1998-11-20 Martin Baulig * sysdeps/common/mountlist.c: Applied a patch from Kenneth Stailey to make it work on OpenBSD. --- ChangeLog | 5 +++++ sysdeps/common/mountlist.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a5b6fa50..c4ca8512 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1998-11-20 Martin Baulig + + * sysdeps/common/mountlist.c: Applied a patch from Kenneth Stailey to + make it work on OpenBSD. + 1998-11-18 Martin Baulig * lib/open.c (glibtop_open_l): We need to set argv[0] in call diff --git a/sysdeps/common/mountlist.c b/sysdeps/common/mountlist.c index 77f9755a..9e910e0e 100644 --- a/sysdeps/common/mountlist.c +++ b/sysdeps/common/mountlist.c @@ -139,7 +139,7 @@ xatoi (cp) } #endif /* MOUNTED_GETMNTENT1. */ -#if defined (MOUNTED_GETMNTINFO) && !defined (__NetBSD__) +#if defined (MOUNTED_GETMNTINFO) && !defined (__NetBSD__) && !defined (__OpenBSD__) static char * fstype_to_string (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->me_devname = xstrdup (fsp->f_mntfromname); me->me_mountdir = xstrdup (fsp->f_mntonname); -#ifdef __NetBSD__ +#if defined(__NetBSD__) || defined(__OpenBSD__) me->me_type = xstrdup (fsp->f_fstypename); #else me->me_type = xstrdup (fstype_to_string (fsp->f_type));