xref: /freebsd/sys/contrib/openzfs/config/kernel-set-nlink.m4 (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1dnl #
2dnl # Linux 3.2 API change
3dnl # set_nlink()
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_SRC_SET_NLINK], [
6	ZFS_LINUX_TEST_SRC([set_nlink], [
7		#include <linux/fs.h>
8	],[
9		struct inode node;
10		unsigned int link = 0;
11		(void) set_nlink(&node, link);
12	])
13])
14
15AC_DEFUN([ZFS_AC_KERNEL_SET_NLINK], [
16	AC_MSG_CHECKING([whether set_nlink() is available])
17	ZFS_LINUX_TEST_RESULT([set_nlink], [
18		AC_MSG_RESULT(yes)
19	],[
20		ZFS_LINUX_TEST_ERROR([set_nlink()])
21	])
22])
23