2011-12-16 21:15:12 +00:00
|
|
|
dnl #
|
|
|
|
dnl # Linux v3.2-rc1 API change
|
|
|
|
dnl # SHA: bfe8684869601dacfcb2cd69ef8cfd9045f62170
|
|
|
|
dnl #
|
2019-10-01 19:50:34 +00:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_SET_NLINK], [
|
|
|
|
ZFS_LINUX_TEST_SRC([set_nlink], [
|
2011-12-16 21:15:12 +00:00
|
|
|
#include <linux/fs.h>
|
|
|
|
],[
|
|
|
|
struct inode node;
|
|
|
|
unsigned int link = 0;
|
|
|
|
(void) set_nlink(&node, link);
|
2019-10-01 19:50:34 +00:00
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SET_NLINK], [
|
|
|
|
AC_MSG_CHECKING([whether set_nlink() is available])
|
|
|
|
ZFS_LINUX_TEST_RESULT([set_nlink], [
|
2011-12-16 21:15:12 +00:00
|
|
|
AC_MSG_RESULT(yes)
|
2019-10-01 19:50:34 +00:00
|
|
|
AC_DEFINE(HAVE_SET_NLINK, 1, [set_nlink() is available])
|
2011-12-16 21:15:12 +00:00
|
|
|
],[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|
|
|
|
])
|