Add support for QNX8.0

This request brings support to the latest version of QNX software. _g_get_unix_mount_points (void) for getfsent() system also works on QNX. To avoid duplicating codes, it will be reused.
This commit is contained in:
Felix Xing 2025-01-31 09:18:02 -05:00
parent 9c7a57dcc5
commit a177c46b19
2 changed files with 3 additions and 2 deletions

View File

@ -189,7 +189,7 @@ static GSource *proc_mounts_watch_source = NULL;
#include <fshelp.h>
#endif
#if (defined(HAVE_GETVFSSTAT) || defined(HAVE_GETFSSTAT)) && defined(HAVE_FSTAB_H) && defined(HAVE_SYS_MOUNT_H)
#if (defined(HAVE_GETVFSSTAT) || defined(HAVE_GETFSSTAT) || defined(HAVE_GETFSENT)) && defined(HAVE_FSTAB_H) && defined(HAVE_SYS_MOUNT_H)
#include <sys/param.h>
#include <sys/ucred.h>
#include <sys/mount.h>
@ -1653,7 +1653,7 @@ _g_get_unix_mount_points (void)
return unix_mount_point_array_free_to_list (g_steal_pointer (&points), n_points);
}
#elif (defined(HAVE_GETVFSSTAT) || defined(HAVE_GETFSSTAT)) && defined(HAVE_FSTAB_H) && defined(HAVE_SYS_MOUNT_H)
#elif (defined(HAVE_GETVFSSTAT) || defined(HAVE_GETFSSTAT) || defined(HAVE_GETFSENT)) && defined(HAVE_FSTAB_H) && defined(HAVE_SYS_MOUNT_H)
static GList *
_g_get_unix_mount_points (void)

View File

@ -698,6 +698,7 @@ functions = [
'ftruncate64',
'getauxval',
'getc_unlocked',
'getfsent',
'getfsstat',
'getgrgid_r',
'getmntent_r',