Skip to content

Commit 9080e1e

Browse files
Jack Morganmetan-ucw
authored andcommitted
configure.ac: Add check for STATMOUNT_MNT_NS_ID
mnt_ns_id was removed from struct statmount in newer kernels. This check determines whether the headers have this field or not. Signed-off-by: Jack Morgan <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent c8c261b commit 9080e1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ AC_CHECK_TYPES([struct cachestat],,,[#include <sys/mman.h>])
264264
# Defined in <linux/mount.h>, but include/lapi/mount.h includes <sys/mount.h> */
265265
AC_CHECK_TYPES([struct mnt_id_req],,,[#include <sys/mount.h>])
266266
AC_CHECK_TYPES([struct statmount],,,[#include <sys/mount.h>])
267+
AC_CHECK_MEMBERS([struct statmount.mnt_ns_id],,,[#include <unistd.h>
268+
#include <linux/mount.h>])
267269

268270
AC_CHECK_TYPES([struct pidfd_info],,,[#include <sys/pidfd.h>])
269271
AC_CHECK_TYPES([struct file_attr],,,[#include <linux/fs.h>])

0 commit comments

Comments
 (0)