Merge pull request #3010 from cgwalters/more-composefs-fixes

build-sys: Really fix composefs check
This commit is contained in:
Joseph Marrero Corchado 2023-08-24 21:13:07 -04:00 committed by GitHub
commit bd91fda636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,11 +277,11 @@ AM_CONDITIONAL(USE_GPGME, test "x$have_gpgme" = xyes)
dnl composefs won't work at all without this
AC_MSG_CHECKING([for MOUNT_ATTR_IDMAP])
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE([[
#include <linux/mount.h>
[AC_LANG_PROGRAM([
#include <sys/mount.h>
int foo = MOUNT_ATTR_IDMAP;
]])],
#include <linux/mount.h>
],[int foo = MOUNT_ATTR_IDMAP;]
)],
[AC_MSG_RESULT(yes)
have_mount_attr_idmap=yes],
[AC_MSG_RESULT(no)])