]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-show-options.m4
Don't assume pthread_t is uint_t for portability
[mirror_zfs.git] / config / kernel-show-options.m4
CommitLineData
47621f3d
BB
1dnl #
2dnl # Linux 3.3 API
3dnl #
4AC_DEFUN([ZFS_AC_KERNEL_SHOW_OPTIONS], [
5 AC_MSG_CHECKING([whether sops->show_options() wants dentry])
6
7 ZFS_LINUX_TRY_COMPILE([
8 #include <linux/fs.h>
47621f3d 9
ed3fc800
RY
10 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
11 static struct super_operations sops __attribute__ ((unused)) = {
12 .show_options = show_options,
13 };
14 ],[
47621f3d
BB
15 ],[
16 AC_MSG_RESULT([yes])
17 AC_DEFINE(HAVE_SHOW_OPTIONS_WITH_DENTRY, 1,
18 [sops->show_options() with dentry])
19 ],[
20 AC_MSG_RESULT([no])
21 ])
22])