From: Nickolai Zeldovich Date: Mon, 22 Jul 2002 23:17:26 +0000 (+0000) Subject: Correctly check for 32-bit file size limitations on Solaris; X-Git-Tag: openafs-stable-1_2_6~32 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7822460ae5d68eb25e6cd12d9f46ea0cd35a1805;p=packages%2Fo%2Fopenafs.git Correctly check for 32-bit file size limitations on Solaris; the MAXOFF_T value changed from 32-bit to 64-bit in Solaris 7. (cherry picked from commit fbb81cb4ed02a8b9a41657d7ebfdb26b73bdf935) --- diff --git a/src/afs/SOLARIS/osi_machdep.h b/src/afs/SOLARIS/osi_machdep.h index 0f71fa02b..09403c6b8 100644 --- a/src/afs/SOLARIS/osi_machdep.h +++ b/src/afs/SOLARIS/osi_machdep.h @@ -102,7 +102,7 @@ extern kmutex_t afs_rxglobal_lock; #undef AfsLargeFileUio #define AfsLargeFileUio(uio) ( (uio)->_uio_offset._p._u ? 1 : 0 ) #undef AfsLargeFileSize -#define AfsLargeFileSize(pos, off) ( ((offset_t)(pos)+(offset_t)(off) > (offset_t)MAXOFF_T)?1:0) +#define AfsLargeFileSize(pos, off) ( ((offset_t)(pos)+(offset_t)(off) > (offset_t)0x7fffffff)?1:0) #endif #endif /* _OSI_MACHDEP_H_ */