redhat-81-support-again-20030319
[openafs.git] / src / cf / linux-test1.m4
1 AC_DEFUN(LINUX_INODE_SETATTR_RETURN_TYPE,[
2 AC_MSG_CHECKING(for inode_setattr return type)
3 save_CPPFLAGS="$CPPFLAGS"
4 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
5 AC_CACHE_VAL(ac_cv_linux_func_inode_setattr_returns_int,
6 [
7 AC_TRY_COMPILE(
8 [#include <linux/fs.h>],
9 [struct inode _inode; 
10 struct iattr _iattr;
11 int i; 
12 i = inode_setattr(&_inode, &_iattr);], 
13 ac_cv_linux_func_inode_setattr_returns_int=yes,
14 ac_cv_linux_func_inode_setattr_returns_int=no)])
15 AC_MSG_RESULT($ac_cv_linux_func_inode_setattr_returns_int)
16 CPPFLAGS="$save_CPPFLAGS"])