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