From: Michael Meffie Date: Fri, 17 Jul 2009 15:06:34 +0000 (-0400) Subject: Build on linux 2.4 again X-Git-Tag: openafs-devel-1_5_61~86 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f6e46babd8e3a0d51d31ae381748516330f5b84d;p=packages%2Fo%2Fopenafs.git Build on linux 2.4 again Add missing conditional to fix building on linux 2.4. FIXES 125120 Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/148 Tested-by: Simon Wilkinson Reviewed-by: Simon Wilkinson Tested-by: Russ Allbery Reviewed-by: Russ Allbery --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index ff8962deb..6f780d332 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -2040,10 +2040,12 @@ afs_linux_writepage(struct page *pp) do_it: status = afs_linux_writepage_sync(inode, pp, 0, offset); SetPageUptodate(pp); +#if defined(AFS_LINUX26_ENV) #if defined(WRITEPAGE_ACTIVATE) if ( status != WRITEPAGE_ACTIVATE ) #else if ( status != AOP_WRITEPAGE_ACTIVATE ) +#endif #endif UnlockPage(pp); if (status == offset)