mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
gunixmounts: Handle Solaris name of mnt_mntopts in place of mnt_opts
Fixes build failure: ../gio/gunixmounts.c: In function ‘_g_get_unix_mounts’: ../gio/gunixmounts.c:742:53: error: ‘struct mnttab’ has no member named ‘mnt_opts’; did you mean ‘mnt_mntopts’? 742 | mntent.mnt_opts, | ^~~~~~~~ | mnt_mntopts Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
c08e7b9364
commit
e5e1490990
@ -165,6 +165,9 @@ static guint64 mount_poller_time = 0;
|
||||
#endif
|
||||
#elif defined (HAVE_SYS_MNTTAB_H)
|
||||
#include <sys/mnttab.h>
|
||||
#ifdef _sun
|
||||
#define mnt_opts mnt_mntopts
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_VFSTAB_H
|
||||
|
Loading…
Reference in New Issue
Block a user