]>
Commit | Line | Data |
---|---|---|
28eb9213 | 1 | dnl # |
066e8252 BB |
2 | dnl # Linux 3.2 API change |
3 | dnl # set_nlink() | |
28eb9213 | 4 | dnl # |
608f8749 BB |
5 | AC_DEFUN([ZFS_AC_KERNEL_SRC_SET_NLINK], [ |
6 | ZFS_LINUX_TEST_SRC([set_nlink], [ | |
28eb9213 DH |
7 | #include <linux/fs.h> |
8 | ],[ | |
9 | struct inode node; | |
10 | unsigned int link = 0; | |
11 | (void) set_nlink(&node, link); | |
608f8749 BB |
12 | ]) |
13 | ]) | |
14 | ||
15 | AC_DEFUN([ZFS_AC_KERNEL_SET_NLINK], [ | |
16 | AC_MSG_CHECKING([whether set_nlink() is available]) | |
17 | ZFS_LINUX_TEST_RESULT([set_nlink], [ | |
28eb9213 | 18 | AC_MSG_RESULT(yes) |
28eb9213 | 19 | ],[ |
066e8252 | 20 | ZFS_LINUX_TEST_ERROR([set_nlink()]) |
28eb9213 DH |
21 | ]) |
22 | ]) |