Linux: fix statfs configure test
[openafs.git] / src / cf / linux-test4.m4
index 424bedf..709d8eb 100644 (file)
@@ -269,10 +269,7 @@ AC_DEFUN([LINUX_STATFS_TAKES_DENTRY], [
                       [ac_cv_linux_statfs_takes_dentry],
 [#include <linux/fs.h>
 #include <linux/statfs.h>],
-[struct super_block _sb;
-struct dentry _dentry;
-struct kstatfs _kstatfs;
-(void)_sb.s_op->statfs(&_dentry, &_kstatfs);],
+[extern int simple_statfs(struct dentry *, struct kstatfs *);],
                       [STATFS_TAKES_DENTRY],
                       [define if your statfs takes a dentry argument])
 ])