From: Sam Hartman Date: Tue, 24 Apr 2001 17:40:45 +0000 (+0000) Subject: This commit was generated by cvs2svn to compensate for changes in r217, X-Git-Tag: debian/1.0.4-1~4 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3ab3bf0dbcfd75b6fb50b4a1b1d433b788b157c7;p=packages%2Fo%2Fopenafs.git This commit was generated by cvs2svn to compensate for changes in r217, which included commits to RCS files with non-trunk default branches. --- diff --git a/src/libafs/redhat.sh b/src/libafs/redhat.sh index 0d35c2a09..e213cc9cc 100755 --- a/src/libafs/redhat.sh +++ b/src/libafs/redhat.sh @@ -5,15 +5,20 @@ IBYTES="" SETATTR="" -grep i_bytes /lib/modules/$1/build/include/linux/fs.h > /dev/null +if [ -e $1/include/linux/fs.h ] ; then +grep i_bytes $1/include/linux/fs.h > /dev/null if [ $? = 0 ]; then - IBYTES="-DSTRUCT_INODE_HAS_I_BYTES=1" +IBYTES="-DSTRUCT_INODE_HAS_I_BYTES=1" fi -grep "extern int inode_setattr" /lib/modules/$1/build/include/linux/fs.h > /dev/null + +grep "extern int inode_setattr" $1/include/linux/fs.h > /dev/null if [ $? = 0 ]; then - SETATTR="-DINODE_SETATTR_NOT_VOID=1" +SETATTR="-DINODE_SETATTR_NOT_VOID=1" fi +if [ -e $2 ] ; then /bin/rm $2 +fi echo "KDEFINES = ${IBYTES} ${SETATTR}" > $2 +fi exit 0