mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-16 20:55:11 +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
e605f779ab
commit
8e49fba3f3
@ -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…
x
Reference in New Issue
Block a user