diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index 1e8c1b38c..c0247227c 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -191,9 +191,11 @@ static GSource *proc_mounts_watch_source = NULL; #if (defined(HAVE_GETVFSSTAT) || defined(HAVE_GETFSSTAT) || defined(HAVE_GETFSENT)) && defined(HAVE_FSTAB_H) && defined(HAVE_SYS_MOUNT_H) #include -#include #include #include +#ifdef HAVE_SYS_UCRED_H +#include +#endif #ifdef HAVE_SYS_SYSCTL_H #include #endif diff --git a/meson.build b/meson.build index 8af0b2fac..f453d748c 100644 --- a/meson.build +++ b/meson.build @@ -435,6 +435,7 @@ headers = [ 'sys/time.h', # MSC does not come with this by default 'sys/times.h', 'sys/types.h', + 'sys/ucred.h', 'sys/uio.h', 'sys/vfs.h', 'sys/vfstab.h',