aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel-sget-args.m4
blob: 9d1745925f3cf7d4f0e30b935c1a40372509bd5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
dnl #
dnl # 3.6 API change,
dnl # 'sget' now takes the mount flags as an argument.
dnl #
AC_DEFUN([ZFS_AC_KERNEL_5ARG_SGET],
	[AC_MSG_CHECKING([whether sget() wants 5 args])
	ZFS_LINUX_TRY_COMPILE([
		#include <linux/fs.h>
	],[
		struct file_system_type *type = NULL;
		int (*test)(struct super_block *,void *) = NULL;
		int (*set)(struct super_block *,void *) = NULL;
		int flags = 0;
		void *data = NULL;
		(void) sget(type, test, set, flags, data);
	],[
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_5ARG_SGET, 1, [sget() wants 5 args])
	],[
		AC_MSG_RESULT(no)
	])
])