mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* 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:
parent
a9440f0320
commit
778845fc48
@ -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().
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user