* mountlist.c (read_filesystem_list) [MOUNTED_GETMNTENT1]:

Check for MOUNTED is defined to fix compilation on AIX.
Reported by Alexander Varakin <avarakin00@hotmail.com>.
This commit is contained in:
Andrew V. Samoilov 2003-01-27 17:51:53 +00:00
parent a9440f0320
commit 778845fc48
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-01-27 Andrew V. Samoilov <sav@bcs.zp.ua>
* mountlist.c (read_filesystem_list) [MOUNTED_GETMNTENT1]:
Check for MOUNTED is defined to fix compilation on AIX.
Reported by Alexander Varakin <avarakin00@hotmail.com>.
2003-01-27 Pavel Roskin <proski@gnu.org>
* main.c (update_xterm_title_path): Use is_printable().

View File

@ -201,13 +201,13 @@ read_filesystem_list (int need_fs_type, int all_fs)
mlist = mtail = me;
#ifdef MOUNTED_GETMNTENT1 /* 4.3BSD, SunOS, HP-UX, Dynix, Irix. */
#ifdef MOUNTED
{
struct mntent *mnt;
char *table = MOUNTED;
FILE *fp;
char *devopt;
fp = setmntent (table, "r");
fp = setmntent (MOUNTED, "r");
if (fp == NULL)
return NULL;
@ -238,6 +238,7 @@ read_filesystem_list (int need_fs_type, int all_fs)
if (endmntent (fp) == 0)
return NULL;
}
#endif /* MOUNTED */
#endif /* MOUNTED_GETMNTENT1 */
#ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */