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:
Alan Coopersmith 2019-10-04 12:55:14 -07:00
parent c08e7b9364
commit e5e1490990

View File

@ -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