]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Correctly check for 32-bit file size limitations on Solaris;
authorNickolai Zeldovich <kolya@mit.edu>
Mon, 22 Jul 2002 22:23:43 +0000 (22:23 +0000)
committerNickolai Zeldovich <kolya@mit.edu>
Mon, 22 Jul 2002 22:23:43 +0000 (22:23 +0000)
the MAXOFF_T value changed from 32-bit to 64-bit in Solaris 7.

src/afs/SOLARIS/osi_machdep.h

index 0f71fa02b3fb419df9396a15dc4ff9486c7f79e6..09403c6b8b2ef754e3acfc0645e92bb50e5fb0ad 100644 (file)
@@ -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_ */