build-sys: Look for both linux/mount.h and sys/mount.h
authorColin Walters <walters@verbum.org>
Thu, 24 Aug 2023 21:24:29 +0000 (17:24 -0400)
committerColin Walters <walters@verbum.org>
Thu, 24 Aug 2023 21:25:14 +0000 (17:25 -0400)
Since that's what composefs uses.

configure.ac

index c1c8ae78b07085968541ec3841c06d2a8eb00b92..20f9e4ed3a30fc900f1636f36afa11c4e8d4678b 100644 (file)
@@ -278,6 +278,7 @@ 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>
                        #include <sys/mount.h>
       int foo = MOUNT_ATTR_IDMAP;
        ]])],