5 AC_DEFUN([AC_LINUX_GETATTR_THREE_ARGS], [
6 AC_CACHE_CHECK(if getattr in struct inode_operations takes three args,
7 ac_cv_member_inode_operations_getattr_three_args,
8 AC_TRY_COMPILE_KERNEL([#include <asm/current.h>
9 #include <linux/fs.h>],
11 struct inode_operations io;
14 ac_cv_member_inode_operations_getattr_three_args=no,
15 ac_cv_member_inode_operations_getattr_three_args=yes))
17 if test "$ac_cv_member_inode_operations_getattr_three_args" = "yes"; then
18 AC_DEFINE(HAVE_GETATTR_THREE_ARGS, 1,
19 [define if getattr in struct inode_operations takes three args])