* mountlist.c (read_filesystem_list) [MOUNTED_GETMNTENT1]:
Check for MOUNTED is defined to fix compilation on AIX. Reported by Alexander Varakin <avarakin00@hotmail.com>.
Этот коммит содержится в:
родитель
a9440f0320
Коммит
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>
|
2003-01-27 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* main.c (update_xterm_title_path): Use is_printable().
|
* 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;
|
mlist = mtail = me;
|
||||||
|
|
||||||
#ifdef MOUNTED_GETMNTENT1 /* 4.3BSD, SunOS, HP-UX, Dynix, Irix. */
|
#ifdef MOUNTED_GETMNTENT1 /* 4.3BSD, SunOS, HP-UX, Dynix, Irix. */
|
||||||
|
#ifdef MOUNTED
|
||||||
{
|
{
|
||||||
struct mntent *mnt;
|
struct mntent *mnt;
|
||||||
char *table = MOUNTED;
|
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
char *devopt;
|
char *devopt;
|
||||||
|
|
||||||
fp = setmntent (table, "r");
|
fp = setmntent (MOUNTED, "r");
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
@ -238,6 +238,7 @@ read_filesystem_list (int need_fs_type, int all_fs)
|
|||||||
if (endmntent (fp) == 0)
|
if (endmntent (fp) == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif /* MOUNTED */
|
||||||
#endif /* MOUNTED_GETMNTENT1 */
|
#endif /* MOUNTED_GETMNTENT1 */
|
||||||
|
|
||||||
#ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */
|
#ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user